mirror of
https://github.com/zsh-users/zsh
synced 2024-07-21 18:24:18 +00:00
Mapfile fix from Bart: dupstring parameter name to avoid static buffer overuse
This commit is contained in:
parent
fcbd51acb1
commit
ca3f1a3b79
|
@ -1,3 +1,8 @@
|
|||
2001-04-11 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
|
||||
|
||||
* 13944: Src/Modules/mapfile.c (from Bart): dupstring the
|
||||
parameter name to avoid static buffer re-use problem.
|
||||
|
||||
2001-04-10 Wayne Davison <wayned@users.sourceforge.net>
|
||||
|
||||
* unposted: Src/hist.c: Slightly enhanced should_ignore_line()
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue