summaryrefslogtreecommitdiff
path: root/src/mesa/shader/prog_print.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-03-10 10:16:37 -0600
committerBrian Paul <brianp@vmware.com>2009-03-10 10:16:47 -0600
commit3c1ce2d64919e0fb9b28f0697addb87708f4f6ed (patch)
treea85686cab84be614eb7a28fdc7f706c10e1d8a4d /src/mesa/shader/prog_print.c
parent8dff9f349fb55118d74a0b6597722f67a5c930d4 (diff)
mesa: fix dumb sizeof() vs. strlen() mix-up
Diffstat (limited to 'src/mesa/shader/prog_print.c')
-rw-r--r--src/mesa/shader/prog_print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/prog_print.c b/src/mesa/shader/prog_print.c
index 0a78a0a866..3e006a4927 100644
--- a/src/mesa/shader/prog_print.c
+++ b/src/mesa/shader/prog_print.c
@@ -918,7 +918,7 @@ _mesa_write_shader_to_file(const struct gl_shader *shader)
else
type = "vert";
- _mesa_snprintf(filename, strlen(filename), "shader_%u.%s", shader->Name, type);
+ _mesa_snprintf(filename, sizeof(filename), "shader_%u.%s", shader->Name, type);
f = fopen(filename, "w");
if (!f) {
fprintf(stderr, "Unable to open %s for writing\n", filename);