summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Modules/mapfile.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2fef5edb8..82ba670ee 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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()
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);
}