projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8dff9f3
)
mesa: fix dumb sizeof() vs. strlen() mix-up
author
Brian Paul
<brianp@vmware.com>
Tue, 10 Mar 2009 16:16:37 +0000
(10:16 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 10 Mar 2009 16:16:47 +0000
(10:16 -0600)
src/mesa/shader/prog_print.c
patch
|
blob
|
history
diff --git
a/src/mesa/shader/prog_print.c
b/src/mesa/shader/prog_print.c
index 0a78a0a866768511f60a4a8e3820db189eff3fa0..3e006a4927342b8658833fdb269e97d5a9c6dbbf 100644
(file)
--- 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, s
trlen
(filename), "shader_%u.%s", shader->Name, type);
+ _mesa_snprintf(filename, s
izeof
(filename), "shader_%u.%s", shader->Name, type);
f = fopen(filename, "w");
if (!f) {
fprintf(stderr, "Unable to open %s for writing\n", filename);