about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/HISTORY3
-rw-r--r--urt/rle_hdr.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index eb432fee..8a67bfe9 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -6,6 +6,9 @@ CHANGE HISTORY
 
 not yet  BJH  Release 10.91.00
 
+              pnmtorle: Fix incorrect command and filename in header.
+              Brokne in Netpbm 10.88 (September 2019).
+
 20.03.26 BJH  Release 10.90.00
 
               pamundice: Add -listfile.
diff --git a/urt/rle_hdr.c b/urt/rle_hdr.c
index 1edb7a3f..bdb728d2 100644
--- a/urt/rle_hdr.c
+++ b/urt/rle_hdr.c
@@ -78,7 +78,7 @@ rle_names(rle_hdr *    const hdrP,
         hdrP->cmd = pm_strdup(newPgmname);
 
     if (hdrP->file_name != newFname)
-        hdrP->cmd = pm_strdup(newFname);
+        hdrP->file_name = pm_strdup(newFname);
 
     hdrP->img_num = imgNum;
 }