summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-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");