about summary refs log tree commit diff
path: root/other/pamsplit.c
diff options
context:
space:
mode:
Diffstat (limited to 'other/pamsplit.c')
-rw-r--r--other/pamsplit.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/other/pamsplit.c b/other/pamsplit.c
index eb1176e1..2c64d1a0 100644
--- a/other/pamsplit.c
+++ b/other/pamsplit.c
@@ -138,11 +138,11 @@ computeOutputName(char          const outputFilePattern[],
     afterSub = strstr(outputFilePattern, "%d") + 2;
 
     /* Make filenameFormat something like "%s%04u%s" */
-    asprintfN(&filenameFormat, "%%s%%0%ud%%s", padCount);
+    pm_asprintf(&filenameFormat, "%%s%%0%ud%%s", padCount);
 
-    asprintfN(outputNameP, filenameFormat, beforeSub, imageSeq, afterSub);
+    pm_asprintf(outputNameP, filenameFormat, beforeSub, imageSeq, afterSub);
 
-    strfree(filenameFormat);
+    pm_strfree(filenameFormat);
 
     free(beforeSub);
 }
@@ -179,7 +179,7 @@ main(int argc, char *argv[]) {
         extractOneImage(ifP, ofP);
 
         pm_close(ofP);
-        strfree(outputFileName);
+        pm_strfree(outputFileName);
 
         pnm_nextimage(ifP, &eof);
     }