浏览代码

Adapt unit test for rewritten alloc_vprintf function

bel 9 年之前
父节点
当前提交
3082e09033
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 }