diff options
-rw-r--r-- | doc/HISTORY | 4 | ||||
-rw-r--r-- | lib/pmfileio.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/HISTORY b/doc/HISTORY index 1bd37e7f..f2b4d41d 100644 --- a/doc/HISTORY +++ b/doc/HISTORY @@ -14,6 +14,10 @@ not yet BJH Release 10.58.00 xpmtoppm: Make it work on XPM with zero characters per pixel. + + pm_make_tmpfile_fd: fix improper handling when unable to get + memory to construct file name. + Windows/Mingw: fix bug: temporary file creation fails consistently. Broken in 10.34. diff --git a/lib/pmfileio.c b/lib/pmfileio.c index 1d7d2643..ab1fcd32 100644 --- a/lib/pmfileio.c +++ b/lib/pmfileio.c @@ -265,7 +265,7 @@ pm_make_tmpfile_fd(int * const fdP, pm_asprintf(&filenameTemplate, "%s%s%s%s", tmpdir, dirseparator, pm_progname, "_XXXXXX"); - if (filenameTemplate == NULL) + if (filenameTemplate == pm_strsol) pm_asprintf(&error, "Unable to allocate storage for temporary file name"); else { |