aboutsummaryrefslogtreecommitdiffstats
path: root/main/libxml2/libxml2-entities-local-buffers-size2.patch
blob: f3cc8b65e40f4dcb774bb572921319c1c8c628ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From baaf03f80f817bb34c421421e6cb4d68c353ac9a Mon Sep 17 00:00:00 2001
From: Aron Xu <happyaron.xu@gmail.com>
Date: Fri, 20 Jul 2012 07:41:34 +0000
Subject: Fix an error in previous commit

---
diff --git a/entities.c b/entities.c
index 859ec3b..7d06820 100644
--- a/entities.c
+++ b/entities.c
@@ -529,7 +529,7 @@ xmlGetDocEntity(xmlDocPtr doc, const xmlChar *name) {
  */
 #define growBufferReentrant() {						\
     xmlChar *tmp;                                                       \
-    size_t new_size = buffer_size *= 2;                                 \
+    size_t new_size = buffer_size * 2;                                  \
     if (new_size < buffer_size) goto mem_error;                         \
     tmp = (xmlChar *) xmlRealloc(buffer, new_size);	                \
     if (tmp == NULL) goto mem_error;                                    \
--
cgit v0.9.0.2