From f1f1a19be4df3c536f9a988b539fda974002a201 Mon Sep 17 00:00:00 2001 From: Giel van Schijndel Date: Sun, 16 Dec 2007 16:02:54 +0000 Subject: [PATCH] * Fix a bug in iV_DrawTextRotatedFv where I used sprintf instead of vsprintf git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@3076 4a71c877-e1ca-e34f-864e-861f7616d084 --- lib/ivis_opengl/textdraw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ivis_opengl/textdraw.c b/lib/ivis_opengl/textdraw.c index b53f2b7eb..6073a5ab3 100644 --- a/lib/ivis_opengl/textdraw.c +++ b/lib/ivis_opengl/textdraw.c @@ -639,7 +639,7 @@ void iV_DrawTextRotatedFv(float x, float y, float rotation, const char* format, char* str = alloca(size + 1); // Print into our newly created string buffer - sprintf(str, format, ap); + vsprintf(str, format, ap); // Draw the produced string to the screen at the given position and rotation iV_DrawTextRotated(str, x, y, rotation);