about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--converter/other/srf.c3
-rw-r--r--doc/HISTORY5
2 files changed, 6 insertions, 2 deletions
diff --git a/converter/other/srf.c b/converter/other/srf.c
index ded049ac..b0f97242 100644
--- a/converter/other/srf.c
+++ b/converter/other/srf.c
@@ -597,13 +597,12 @@ initPstring(struct srf_pstring * const pstringP,
 
     pstringP->len = strlen(s);
 
-    MALLOCARRAY(pstringP->val, pstringP->len);
+    MALLOCARRAY(pstringP->val, pstringP->len + 1);
 
     if (!pstringP->val)
         pm_error("Could not allocate memory for string of length %u",
                  pstringP->len);
 
-
     memcpy(pstringP->val, s, pstringP->len + 1);
 }
 
diff --git a/doc/HISTORY b/doc/HISTORY
index 717aea1f..62eef7d3 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -4,6 +4,11 @@ Netpbm.
 CHANGE HISTORY 
 --------------
 
+not yet  BJH  Release 10.60.00
+
+              pamtosrf: fix storage corruption.  Always broken (program added
+              in 10.55 (June 2011).
+
 12.06.28 BJH  Release 10.59.00
 
               pamtogif: Make data blocks 255 bytes instead of 254.  255 is