diff options
Diffstat (limited to 'Build/source/texk/makejvf/tfmread.c')
-rw-r--r-- | Build/source/texk/makejvf/tfmread.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/texk/makejvf/tfmread.c b/Build/source/texk/makejvf/tfmread.c index cf825cc28dc..5b4805d7e4e 100644 --- a/Build/source/texk/makejvf/tfmread.c +++ b/Build/source/texk/makejvf/tfmread.c @@ -96,7 +96,7 @@ int tfmget(char *name) char *nbuff; FILE *fp; - nbuff = xmalloc(strlen(name)+4); + nbuff = xmalloc(strlen(name)+4+1); strcpy(nbuff,name); strcat(nbuff,".tfm"); fp = fopen(nbuff,"rb"); @@ -112,6 +112,8 @@ int tfmget(char *name) fclose(fp); + free(nbuff); + return 0; } |