mesa: s/sprintf/_mesa_snprintf/

This commit is contained in:
Vinson Lee
2010-05-02 01:03:59 -07:00
parent 3c86e2f1dc
commit fc1be4a994
6 changed files with 12 additions and 12 deletions

View File

@@ -1279,8 +1279,8 @@ texture_error_check( GLcontext *ctx, GLenum target,
if (type != GL_UNSIGNED_SHORT_8_8_MESA &&
type != GL_UNSIGNED_SHORT_8_8_REV_MESA) {
char message[100];
sprintf(message,
"glTexImage%d(format/type YCBCR mismatch", dimensions);
_mesa_snprintf(message, sizeof(message),
"glTexImage%d(format/type YCBCR mismatch", dimensions);
_mesa_error(ctx, GL_INVALID_ENUM, message);
return GL_TRUE; /* error */
}
@@ -1295,9 +1295,9 @@ texture_error_check( GLcontext *ctx, GLenum target,
if (border != 0) {
if (!isProxy) {
char message[100];
sprintf(message,
"glTexImage%d(format=GL_YCBCR_MESA and border=%d)",
dimensions, border);
_mesa_snprintf(message, sizeof(message),
"glTexImage%d(format=GL_YCBCR_MESA and border=%d)",
dimensions, border);
_mesa_error(ctx, GL_INVALID_VALUE, message);
}
return GL_TRUE;