Commit f04e1a6d authored by Alan Coopersmith's avatar Alan Coopersmith Committed by Ulrich Sibiller

Bug 68413 - [Bisected]Error in `xterm': realloc(): invalid next size

Pass *new* size to realloc, not old size. Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent ba86b7a2
......@@ -644,7 +644,7 @@ parseline(
}
while (b->utf8used + l + 1 > b->utf8size) {
DTCharIndex newsize = b->utf8size ? b->utf8size * 1.5 : 1024;
char *newutf8 = Xrealloc (b->utf8, b->utf8size);
char *newutf8 = Xrealloc (b->utf8, newsize);
if (newutf8 == NULL)
goto error;
b->utf8 = newutf8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment