Browse Source

Adapt unit test for rewritten alloc_vprintf function

bel 9 years ago
parent
commit
3082e09033
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/private.c

+ 1 - 1
test/private.c

@@ -276,7 +276,7 @@ alloc_printf(char **buf, size_t size, const char *fmt, ...)
 	va_list ap;
 	int ret = 0;
 	va_start(ap, fmt);
-	ret = alloc_vprintf(buf, size, fmt, ap);
+	ret = alloc_vprintf(buf, *buf, size, fmt, ap);
 	va_end(ap);
 	return ret;
 }