aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-08-24 17:27:43 -0700
committerUlrich Sibiller <uli42@gmx.de>2016-10-19 21:40:28 +0200
commitf04e1a6d1f3cecc041a2495430a960a931bd1d5b (patch)
tree008730cb7151bdbf36f4722d96957f98452ccc17 /nx-X11/lib/X11
parentba86b7a2eb0370ef1275382122274f514d361778 (diff)
downloadnx-libs-f04e1a6d1f3cecc041a2495430a960a931bd1d5b.tar.gz
nx-libs-f04e1a6d1f3cecc041a2495430a960a931bd1d5b.tar.bz2
nx-libs-f04e1a6d1f3cecc041a2495430a960a931bd1d5b.zip
Bug 68413 - [Bisected]Error in `xterm': realloc(): invalid next size
Pass *new* size to realloc, not old size. Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: Ulrich Sibiller <uli42@gmx.de>
Diffstat (limited to 'nx-X11/lib/X11')
-rw-r--r--nx-X11/lib/X11/imLcPrs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/imLcPrs.c b/nx-X11/lib/X11/imLcPrs.c
index 7745c53d2..afc947468 100644
--- a/nx-X11/lib/X11/imLcPrs.c
+++ b/nx-X11/lib/X11/imLcPrs.c
@@ -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;