Commit 495a6155 authored by IOhannes m zmölnig's avatar IOhannes m zmölnig
Browse files

quote filenames

parent 9dbb68fc
......@@ -189,7 +189,7 @@ bool imageTIFF :: load(std::string filename, imageStruct&result, gem::Properties
uint32*raster = reinterpret_cast<uint32*>(_TIFFmalloc(npixels * sizeof(uint32)));
if (raster == NULL) {
error("[GEM:imageTIFF] Unable to allocate memory for image: %s", filename.c_str());
error("[GEM:imageTIFF] Unable to allocate memory for image '%s'", filename.c_str());
TIFFClose(tif);
return(false);
}
......@@ -321,7 +321,7 @@ bool imageTIFF::save(const imageStruct&constimage, const std::string&filename, c
unsigned char *buf = srcLine;
if (TIFFWriteScanline(tif, buf, row, 0) < 0)
{
verbose(0, "[GEM:imageTIFF] could not write line %d to image %s", row, filename.c_str());
verbose(0, "[GEM:imageTIFF] could not write line %d to image '%s'", row, filename.c_str());
TIFFClose(tif);
delete [] buf;
return(false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment