summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965simple/brw_screen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers/i965simple/brw_screen.c')
-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 5be369fe521..6845c7abde2 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;
}