summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/r600/sb/sb_bc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/sb/sb_bc.h b/src/gallium/drivers/r600/sb/sb_bc.h
index 8b932634c55..6e73b418d23 100644
--- a/src/gallium/drivers/r600/sb/sb_bc.h
+++ b/src/gallium/drivers/r600/sb/sb_bc.h
@@ -92,7 +92,7 @@ public:
sb_ostream& operator <<(double d) {
char b[32];
- sprintf(b, "%f", d);
+ snprintf(b, 32, "%g", d);
return *this << b;
}