diff options
Diffstat (limited to 'pdftool.pl')
-rwxr-xr-x | pdftool.pl | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -198,8 +198,7 @@ if ($filetype eq "PDF") { # Need to copy the whole input to an auxiliary file, since # conversion from PDF to PS requires random access to the data - $infile = "$tmpdir/pdftool-stdin-" . - int(rand 2**16) . lc ".$filetype"; + $infile = "$tmpdir/pdftool-stdin-$$" . lc ".$filetype"; open FIN2, '>', "$infile" or die "Can't write into `$infile': $!"; |