mesa: Call _mesa_snprintf instead of snprintf.
authorJosé Fonseca <jfonseca@vmware.com>
Mon, 27 Apr 2009 12:09:58 +0000 (13:09 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Mon, 27 Apr 2009 12:09:58 +0000 (13:09 +0100)
snprintf not directly available on Windows.

src/mesa/main/imports.c

index 8797f36..615f7c9 100644 (file)
@@ -1137,7 +1137,7 @@ _mesa_error( GLcontext *ctx, GLenum error, const char *fmtString, ... )
          vsnprintf(s, MAXSTRING, fmtString, args);
          va_end(args);
 
-         snprintf(s2, MAXSTRING, "%s in %s", errstr, s);
+         _mesa_snprintf(s2, MAXSTRING, "%s in %s", errstr, s);
          output_if_debug("Mesa: User error", s2, GL_TRUE);
       }
    }