about summary refs log tree commit diff
path: root/converter/ppm/hpcdtoppm/pcdovtoppm
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-06-25 20:37:11 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2020-06-25 20:37:11 +0000
commitbae946382facd3561a32ace3ff15ee35e31549d7 (patch)
treee5b33fb8362325b6b8c201a14bad39680a7c849c /converter/ppm/hpcdtoppm/pcdovtoppm
parent613c8b713fab7516632db31a9ba207ffdc85cb44 (diff)
downloadnetpbm-mirror-bae946382facd3561a32ace3ff15ee35e31549d7.tar.gz
netpbm-mirror-bae946382facd3561a32ace3ff15ee35e31549d7.tar.xz
netpbm-mirror-bae946382facd3561a32ace3ff15ee35e31549d7.zip
more improvements to temp file generation
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@3868 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/ppm/hpcdtoppm/pcdovtoppm')
-rwxr-xr-xconverter/ppm/hpcdtoppm/pcdovtoppm8
1 files changed, 4 insertions, 4 deletions
diff --git a/converter/ppm/hpcdtoppm/pcdovtoppm b/converter/ppm/hpcdtoppm/pcdovtoppm
index eeae73af..715734bd 100755
--- a/converter/ppm/hpcdtoppm/pcdovtoppm
+++ b/converter/ppm/hpcdtoppm/pcdovtoppm
@@ -112,7 +112,7 @@ if [ $# = 0 ]; then
     usage
 fi
 
-tempdir=$(mktemp -d "${TMPDIR:-/tmp}/anytopnm.XXXXXXXX") ||
+tempdir=$(mktemp -d "${TMPDIR:-/tmp}/pcdovtoppm.XXXXXXXX") ||
     ( echo "Could not create temporary file. Exiting." 1>&2; exit 1; ) 
 trap 'rm -rf $tempdir' 0
 
@@ -149,7 +149,7 @@ do
             fi
         fi
     fi
-    imagefile=${tempdir}/pi.${row}.${col}.$$
+    imagefile=${tempdir}/pi.${row}.${col}
     rm -f $imagefile
     ttext="$i:t"
 
@@ -167,7 +167,7 @@ do
     imagefiles="$imagefiles $imagefile"
 
     if [ $col -ge $across -o $width -gt $maxwidth ] ; then
-        rowfile=${tempdir}/pi.${row}.$$
+        rowfile=${tempdir}/pi.${row}
         rm -f $rowfile
     if [ "$colors" = "n" ] ; then
         pnmcat $back -lr -jbottom $imagefiles > $rowfile
@@ -187,7 +187,7 @@ do
 done
 
 if [ ${#imagefiles[*]} -gt 0 ] ; then
-    rowfile=${tempdir}/pi.${row}.$$
+    rowfile=${tempdir}/pi.${row}
     rm -f $rowfile
     if [ "$colors" = "n" ] ; then
         pnmcat $back -lr -jbottom $imagefiles > $rowfile