Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
48586540
Commit
48586540
authored
Jul 26, 2010
by
Travis Athougies
Committed by
Alexandre Julliard
Jul 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wpp: Fixed bug in preventing add_text_to_macro from handling macros over 1 kb large.
parent
8d5f7fe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
ppl.l
libs/wpp/ppl.l
+1
-1
No files found.
libs/wpp/ppl.l
View file @
48586540
...
@@ -1455,7 +1455,7 @@ static void add_text_to_macro(const char *text, int len)
...
@@ -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' */
if(mep->curargalloc - mep->curargsize <= len+1) /* +1 for '\0' */
{
{
char *new_curarg;
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]));
new_curarg = pp_xrealloc(mep->curarg, new_alloc * sizeof(mep->curarg[0]));
if(!new_curarg)
if(!new_curarg)
return;
return;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment