summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/i965simple
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@tungstengraphics.com>2008-04-14 23:55:36 +0900
committerJosé Fonseca <jrfonseca@tungstengraphics.com>2008-04-15 10:13:52 +0900
commit5b8fa518476868530d748ce6d03674e9cca3d89f (patch)
tree0203b70b4a0da695fc013e94a7554789cd95967c /src/gallium/drivers/i965simple
parent21ae3d2721326d56c76370fd8bfcc1536203925d (diff)
gallium: Don't assume snprintf are always available.
Diffstat (limited to 'src/gallium/drivers/i965simple')
-rw-r--r--src/gallium/drivers/i965simple/brw_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965simple/brw_screen.c b/src/gallium/drivers/i965simple/brw_screen.c
index 5be369fe52..6845c7abde 100644
--- a/src/gallium/drivers/i965simple/brw_screen.c
+++ b/src/gallium/drivers/i965simple/brw_screen.c
@@ -28,6 +28,7 @@
#include "pipe/p_util.h"
#include "pipe/p_winsys.h"
+#include "util/u_string.h"
#include "brw_context.h"
#include "brw_screen.h"
@@ -66,7 +67,7 @@ brw_get_name( struct pipe_screen *screen )
break;
}
- sprintf(buffer, "i965 (chipset: %s)", chipset);
+ util_snprintf(buffer, sizeof(buffer), "i965 (chipset: %s)", chipset);
return buffer;
}