diff options
author | José Fonseca <[email protected]> | 2008-04-14 23:55:36 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-04-15 10:13:52 +0900 |
commit | 5b8fa518476868530d748ce6d03674e9cca3d89f (patch) | |
tree | 0203b70b4a0da695fc013e94a7554789cd95967c /src/gallium/drivers/i915simple/i915_screen.c | |
parent | 21ae3d2721326d56c76370fd8bfcc1536203925d (diff) |
gallium: Don't assume snprintf are always available.
Diffstat (limited to 'src/gallium/drivers/i915simple/i915_screen.c')
-rw-r--r-- | src/gallium/drivers/i915simple/i915_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915simple/i915_screen.c b/src/gallium/drivers/i915simple/i915_screen.c index 839b98c0cec..9ae594ce54c 100644 --- a/src/gallium/drivers/i915simple/i915_screen.c +++ b/src/gallium/drivers/i915simple/i915_screen.c @@ -28,6 +28,7 @@ #include "pipe/p_util.h" #include "pipe/p_winsys.h" +#include "util/u_string.h" #include "i915_reg.h" #include "i915_context.h" @@ -78,7 +79,7 @@ i915_get_name( struct pipe_screen *pscreen ) break; } - sprintf(buffer, "i915 (chipset: %s)", chipset); + util_snprintf(buffer, sizeof(buffer), "i915 (chipset: %s)", chipset); return buffer; } |