From e97a191dcfc6f728c921cc8920cbbcad4e3d9743 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Tue, 30 Mar 2010 00:34:17 +0000 Subject: malloc enough space, found by Eddie K. git-svn-id: svn://tug.org/texlive/trunk@17619 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/lib/openclose.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Build/source/texk/web2c/lib/openclose.c') diff --git a/Build/source/texk/web2c/lib/openclose.c b/Build/source/texk/web2c/lib/openclose.c index 364f11f9cd2..4ca22d71294 100644 --- a/Build/source/texk/web2c/lib/openclose.c +++ b/Build/source/texk/web2c/lib/openclose.c @@ -47,7 +47,8 @@ recorder_start(void) char pid_str[MAX_INT_LENGTH]; sprintf (pid_str, "%ld", (long) pid); - recorder_name = (string)xmalloc(strlen(kpse_program_name)+5); + recorder_name = (string)xmalloc(strlen(kpse_program_name) + + strlen (pid_str) + 5); strcpy(recorder_name, kpse_program_name); strcat(recorder_name, pid_str); strcat(recorder_name, ".fls"); -- cgit v1.2.3