mojoshader_common.c
changeset 1140 fad7ed946c06
parent 1116 0ef3d106dab9
child 1141 77468a2a9165
--- a/mojoshader_common.c	Mon Apr 28 14:15:17 2014 -0400
+++ b/mojoshader_common.c	Mon Jun 23 14:50:56 2014 -0400
@@ -799,7 +799,7 @@
     va_copy(ap, va);
     vsnprintf(buf, len + 1, fmt, ap);  // rebuild it.
     va_end(ap);
-    const int retval = buffer_append(buffer, scratch, len);
+    const int retval = buffer_append(buffer, buf, len);
     buffer->f(buf, buffer->d);
     return retval;
 } // buffer_append_va