about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-04-11 00:09:05 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-04-11 00:09:05 +0000
commitca3f1a3b79eb873ff01eb55959799487f6cc9936 (patch)
tree2637c6f37e2e4af789b901b279f0b43f547c0b3e /Src
parentfcbd51acb1719be3ddc8c190bd688520c25cfb50 (diff)
downloadzsh-ca3f1a3b79eb873ff01eb55959799487f6cc9936.tar.gz
zsh-ca3f1a3b79eb873ff01eb55959799487f6cc9936.tar.xz
zsh-ca3f1a3b79eb873ff01eb55959799487f6cc9936.zip
Mapfile fix from Bart: dupstring parameter name to avoid static buffer overuse
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/mapfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Src/Modules/mapfile.c b/Src/Modules/mapfile.c
index bed98da2b..586e4a24e 100644
--- a/Src/Modules/mapfile.c
+++ b/Src/Modules/mapfile.c
@@ -318,6 +318,7 @@ scanpmmapfile(HashTable ht, ScanFunc func, int flags)
 	 * we always read the entire contents of every single file
 	 * in the directory into memory.  Hence just leave it empty.
 	 */
+	pm.nam = dupstring(pm.nam);
 	pm.u.str = "";
 	func((HashNode) &pm, flags);
     }