瀏覽代碼

Fix wrong va_arg parameter used when calling alloc_vprintf2 (#378)

bel 8 年之前
父節點
當前提交
e51ccf8890
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/civetweb.c

+ 1 - 1
src/civetweb.c

@@ -5105,7 +5105,7 @@ alloc_vprintf(char **out_buf,
 		 * Switch to alternative code path that uses incremental allocations.
 		*/
 		va_copy(ap_copy, ap);
-		len = alloc_vprintf2(out_buf, fmt, ap);
+		len = alloc_vprintf2(out_buf, fmt, ap_copy);
 		va_end(ap_copy);
 
 	} else if ((size_t)(len) >= prealloc_size) {