Mapfile fix from Bart: dupstring parameter name to avoid static buffer overuse

This commit is contained in:
Peter Stephenson 2001-04-11 00:09:05 +00:00
parent fcbd51acb1
commit ca3f1a3b79
2 changed files with 6 additions and 0 deletions

View file

@ -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()

View file

@ -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);
}