diff options
Diffstat (limited to 'Build/source/texk/web2c/lib/openclose.c')
-rw-r--r-- | Build/source/texk/web2c/lib/openclose.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/lib/openclose.c b/Build/source/texk/web2c/lib/openclose.c index 1d21476b2b1..4107ce70ca9 100644 --- a/Build/source/texk/web2c/lib/openclose.c +++ b/Build/source/texk/web2c/lib/openclose.c @@ -1,6 +1,6 @@ /* openclose.c: open and close files for TeX, Metafont, and BibTeX. - Written 1995, 96 Karl Berry. Public domain. */ + Written 1995 Karl Berry. Public domain. */ #include "config.h" #include "lib.h" @@ -47,7 +47,7 @@ recorder_start(void) char pid_str[MAX_INT_LENGTH]; sprintf (pid_str, "%ld", (long) pid); - recorder_name = (string)xmalloc(strlen(kpse_program_name) + recorder_name = xmalloc(strlen(kpse_program_name) + strlen (pid_str) + 5); strcpy(recorder_name, kpse_program_name); strcat(recorder_name, pid_str); @@ -139,7 +139,7 @@ open_input (FILE **f_ptr, int filefmt, const_string fopen_mode) if (*f_ptr) { free (nameoffile); namelength = strlen (fname); - nameoffile = (string) xmalloc (namelength + 2); + nameoffile = xmalloc (namelength + 2); strcpy (nameoffile + 1, fname); fullnameoffile = fname; } else { @@ -186,7 +186,7 @@ open_input (FILE **f_ptr, int filefmt, const_string fopen_mode) /* kpse_find_file always returns a new string. */ free (nameoffile); namelength = strlen (fname); - nameoffile = (string)xmalloc (namelength + 2); + nameoffile = xmalloc (namelength + 2); strcpy (nameoffile + 1, fname); free (fname); @@ -257,7 +257,7 @@ open_output (FILE **f_ptr, const_string fopen_mode) if (fname != nameoffile + 1) { free (nameoffile); namelength = strlen (fname); - nameoffile = (string)xmalloc (namelength + 2); + nameoffile = xmalloc (namelength + 2); strcpy (nameoffile + 1, fname); } recorder_record_output (fname); |