mojoshader_common.c
changeset 1080 b92bdbf78621
parent 1065 bb021d539ec5
child 1111 7530b37979b8
equal deleted inserted replaced
1079:a9a27872b73c 1080:b92bdbf78621
   758     return retval;
   758     return retval;
   759 } // buffer_append_fmt
   759 } // buffer_append_fmt
   760 
   760 
   761 int buffer_append_va(Buffer *buffer, const char *fmt, va_list va)
   761 int buffer_append_va(Buffer *buffer, const char *fmt, va_list va)
   762 {
   762 {
   763     char scratch[128];
   763     char scratch[256];
   764 
   764 
   765     va_list ap;
   765     va_list ap;
   766     va_copy(ap, va);
   766     va_copy(ap, va);
   767     const int len = vsnprintf(scratch, sizeof (scratch), fmt, ap);
   767     const int len = vsnprintf(scratch, sizeof (scratch), fmt, ap);
   768     va_end(ap);
   768     va_end(ap);