[v]rsprintf(): actually set the return pointer...
authorH. Peter Anvin <hpa@zytor.com>
Tue, 19 Feb 2008 22:07:44 +0000 (14:07 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 20 Feb 2008 00:51:23 +0000 (16:51 -0800)
com32/menu/refstr.c

index 5f35729..413561c 100644 (file)
@@ -66,6 +66,7 @@ int vrsprintf(const char **bufp, const char *fmt, va_list ap)
 
   *(unsigned int *)p = 1;
   p += sizeof(unsigned int);
+  *bufp = p;
 
   return vsnprintf(p, bytes, fmt, ap);
 }