Travis Athougies : wpp: Fixed bug in preventing add_text_to_macro from handling macros over 1 kb large .
Alexandre Julliard
julliard at winehq.org
Tue Oct 5 14:41:44 CDT 2010
Module: wine
Branch: stable
Commit: 2619c628e205b9c5a9a2f36a1c931c4bb4caf5d8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2619c628e205b9c5a9a2f36a1c931c4bb4caf5d8
Author: Travis Athougies <iammisc at gmail.com>
Date: Mon Jul 26 17:55:29 2010 +0000
wpp: Fixed bug in preventing add_text_to_macro from handling macros over 1 kb large.
(cherry picked from commit 4858654031d169e28ca848ae69878bab822436ac)
---
libs/wpp/ppl.l | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libs/wpp/ppl.l b/libs/wpp/ppl.l
index 6e0c7a1..0588e5d 100644
--- a/libs/wpp/ppl.l
+++ b/libs/wpp/ppl.l
@@ -1455,7 +1455,7 @@ static void add_text_to_macro(const char *text, int len)
if(mep->curargalloc - mep->curargsize <= len+1) /* +1 for '\0' */
{
char *new_curarg;
- int new_alloc = mep->curargalloc + (ALLOCBLOCKSIZE > len+1) ? ALLOCBLOCKSIZE : len+1;
+ int new_alloc = mep->curargalloc + ((ALLOCBLOCKSIZE > len+1) ? ALLOCBLOCKSIZE : len+1);
new_curarg = pp_xrealloc(mep->curarg, new_alloc * sizeof(mep->curarg[0]));
if(!new_curarg)
return;
More information about the wine-cvs
mailing list