From ba4436784d91f5588b7eb0f58debe42e07769d2e Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Wed, 20 Jan 2021 18:40:37 +0000 Subject: xmalloc not malloc git-svn-id: svn://tug.org/texlive/trunk@57477 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/pdftexdir/ChangeLog | 3 ++- Build/source/texk/web2c/pdftexdir/ptexmac.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Build/source/texk/web2c/pdftexdir/ChangeLog b/Build/source/texk/web2c/pdftexdir/ChangeLog index d4c1ec7074a..d8649a38d30 100644 --- a/Build/source/texk/web2c/pdftexdir/ChangeLog +++ b/Build/source/texk/web2c/pdftexdir/ChangeLog @@ -1,6 +1,7 @@ 2021-01-20 Karl Berry * NEWS: update. + * ptexmac.h (undumpcharptr): use xmalloc, not malloc. 2021-01-20 Marcel Fabian Krueger @@ -9,7 +10,7 @@ * ptexlib.h ((un)dumptounicode): declare. * tounicode.c ((un)dumptounicode): define. * ptexmac.h ((un)dumpcharptr): #define here, from writeimg.c - (using generic_dump). Use xmalloc instead of malloc. + (using generic_dump). * writeimg.c: #defines moved. ntg-pdftex mail, 17 Jan 2021 21:47:33. diff --git a/Build/source/texk/web2c/pdftexdir/ptexmac.h b/Build/source/texk/web2c/pdftexdir/ptexmac.h index cebb279138a..30e8e744c61 100644 --- a/Build/source/texk/web2c/pdftexdir/ptexmac.h +++ b/Build/source/texk/web2c/pdftexdir/ptexmac.h @@ -237,7 +237,7 @@ size_t T##_limit char *a; \ generic_undump (x); \ if (x>0) { \ - a = malloc(x); \ + a = xmalloc(x); \ undumpthings(*a,x); \ s = a ; \ } else { s = NULL; } \ -- cgit v1.2.3