diff options
author | Paul Smith <psmith@gnu.org> | 2013-05-26 16:53:17 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-05-26 16:53:17 -0400 |
commit | 4e3485c1d9e9ecd6db6ad4ae1b90572435acca2c (patch) | |
tree | 781bb19957361377cbe88381e462d544fbff827d /remake.c | |
parent | 74d4cf5630f7028e2a615b8ff140f0b6e6d95ae1 (diff) | |
download | make-4e3485c1d9e9ecd6db6ad4ae1b90572435acca2c.tar.gz |
[SV #38442] Add library names to the string cache.
Diffstat (limited to 'remake.c')
-rw-r--r-- | remake.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1256,7 +1256,7 @@ f_mtime (struct file *file, int search) arlen = strlen (arfile->hname); memlen = strlen (memname); - name = xmalloc (arlen + 1 + memlen + 2); + name = alloca (arlen + 1 + memlen + 2); memcpy (name, arfile->hname, arlen); name[arlen] = '('; memcpy (name + arlen + 1, memname, memlen); @@ -1266,9 +1266,9 @@ f_mtime (struct file *file, int search) /* If the archive was found with GPATH, make the change permanent; otherwise defer it until later. */ if (arfile->name == arfile->hname) - rename_file (file, name); + rename_file (file, strcache_add (name)); else - rehash_file (file, name); + rehash_file (file, strcache_add (name)); check_renamed (file); } |