r300g: Check return value of snprintf().
authorMatt Turner <mattst88@gmail.com>
Wed, 4 Mar 2015 00:09:58 +0000 (16:09 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 4 Mar 2015 19:15:09 +0000 (11:15 -0800)
commitade0b580e75bdea227eec5345f6681b678d0811b
tree6df88aafc486148f39cc4a700e3da8c5db97584f
parentf5e2aa1324dd6a9666bb21834097d2fbc3cb99b6
r300g: Check return value of snprintf().

Would have at least prevented the crash the previous patch fixed.

Cc: 10.4, 10.5 <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=540970
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
src/gallium/drivers/r300/compiler/tests/rc_test_helpers.c