summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/lib/openclose.c
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2010-03-30 00:34:17 +0000
committerKarl Berry <karl@freefriends.org>2010-03-30 00:34:17 +0000
commite97a191dcfc6f728c921cc8920cbbcad4e3d9743 (patch)
tree91da980bd614b685a7523f9d9cc3311ac271b4ff /Build/source/texk/web2c/lib/openclose.c
parent779a9884b38001603760cc07d1fc4d71c4ecf381 (diff)
malloc enough space, found by Eddie K.
git-svn-id: svn://tug.org/texlive/trunk@17619 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/lib/openclose.c')
-rw-r--r--Build/source/texk/web2c/lib/openclose.c3
1 files changed, 2 insertions, 1 deletions
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");