Description: initialize panoFileMakeTemp() arguments Author: Andreas Metzler Forwarded: https://bugs.launchpad.net/panotools/+bug/734867 diff -r 34d8f7279b7d PTcommon.c --- a/PTcommon.c Wed Mar 16 19:16:58 2011 +0000 +++ b/PTcommon.c Sat Mar 19 14:29:51 2011 +0100 @@ -1027,7 +1027,7 @@ int panoCreatePanorama(fullPath ptrImage /// CREATE OUTPUT FILE // Copy the current output file name to he fullPathImages[loopCounter] - memcpy(&fullPathImages[loopCounter], &panoFileName, sizeof(fullPath)); + memcpy(&fullPathImages[loopCounter], panoFileName, sizeof(fullPath)); // Create temporary file where output data wil be written if (panoFileMakeTemp(&fullPathImages[loopCounter]) == 0) { diff -r 34d8f7279b7d tiff.c --- a/tiff.c Wed Mar 16 19:16:58 2011 +0000 +++ b/tiff.c Sat Mar 19 14:29:51 2011 +0100 @@ -1913,6 +1913,7 @@ int panoTiffCrop(char *inputFile, char * int i; fullPath tempFile; + strcpy(tempFile.name, ""); // Let us do the processing in a different file if (panoFileMakeTemp(&tempFile) == 0) { PrintError("Could not make Tempfile");