diff options
author | Vinson Lee <[email protected]> | 2010-05-02 01:03:59 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-05-02 01:03:59 -0700 |
commit | fc1be4a99425d09103bba9e06026f31f2b0142d2 (patch) | |
tree | d95653e164f8608c8f7619fec0554a772a8229d7 /src/mesa/main/texobj.c | |
parent | 3c86e2f1dce458aec42b5de54fc2cf25cac28172 (diff) |
mesa: s/sprintf/_mesa_snprintf/
Diffstat (limited to 'src/mesa/main/texobj.c')
-rw-r--r-- | src/mesa/main/texobj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 2753b55c36a..de37e340393 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -416,7 +416,7 @@ _mesa_test_texobj_completeness( const GLcontext *ctx, */ if ((baseLevel < 0) || (baseLevel >= MAX_TEXTURE_LEVELS)) { char s[100]; - sprintf(s, "base level = %d is invalid", baseLevel); + _mesa_snprintf(s, sizeof(s), "base level = %d is invalid", baseLevel); incomplete(t, s); t->_Complete = GL_FALSE; return; @@ -425,7 +425,7 @@ _mesa_test_texobj_completeness( const GLcontext *ctx, /* Always need the base level image */ if (!t->Image[0][baseLevel]) { char s[100]; - sprintf(s, "Image[baseLevel=%d] == NULL", baseLevel); + _mesa_snprintf(s, sizeof(s), "Image[baseLevel=%d] == NULL", baseLevel); incomplete(t, s); t->_Complete = GL_FALSE; return; |