summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-10-18 18:59:13 -0600
committerBrian Paul <[email protected]>2011-10-18 19:00:07 -0600
commit5485192fc81ab40ffdbfb1c74346d887c3c03231 (patch)
tree83750d0d8d8b2244c9344da77e42fa9c5db9d05b /src/mesa
parent973b4ddd0e2f25cfd72cb945fbd38aed629a6fed (diff)
mesa: use format string in _mesa_error() call to silence warning
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/dlist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c
index 567629df35c..ceb75c4b3de 100644
--- a/src/mesa/main/dlist.c
+++ b/src/mesa/main/dlist.c
@@ -4519,7 +4519,7 @@ static GLvoid *copy_data(const GLvoid *data, GLsizei size, const char *func)
image = malloc(size);
if (!image) {
- _mesa_error(ctx, GL_OUT_OF_MEMORY, func);
+ _mesa_error(ctx, GL_OUT_OF_MEMORY, "%s", func);
return NULL;
}
memcpy(image, data, size);