Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Diff of /autopano-sift-C/AutoPano.c [bde674] .. [fcaf51] Maximize Restore

  Switch to side-by-side view

--- a/autopano-sift-C/AutoPano.c
+++ b/autopano-sift-C/AutoPano.c
@@ -379,10 +379,6 @@
 		ArrayList_AddItem(resolutions, Resolution_new (kx->xDim, kx->yDim));
 		
 		char*  imageFile = kx->imageFile;
-		if (useAbsolutePathnames)
-			imageFile = FileNameToFullPath (imageFile);
-		else
-			imageFile = FullPathToFileName (imageFile);
 		
 		// If the resolution was already there, use the first image with
 		// the exact same resolution as reference for camera-related
@@ -551,7 +547,7 @@
 				useRansac = YesNoOption ("--ransac", argv[optionN + 1]);
 				optionN += 2;
 			} else if (strcmp (optionStr, "--maxmatches") == 0) {
-				if (sscanf("%d",  argv[optionN + 1], &maxMatches) != 1) {
+				if (sscanf(argv[optionN + 1], "%d",  &maxMatches) != 1) {
 					WriteLine ("Parameter to maxmatches option invalid. See the usage help.");
 					exit (1);
 				}
@@ -579,7 +575,7 @@
 				bottomDefault = 1;
 				optionN += 1;
 			} else if (strcmp (optionStr, "--generate-horizon") == 0) {
-				if (sscanf("%d", argv[optionN + 1], &generateHorizon) != 1) {
+				if (sscanf(argv[optionN + 1], "%d", &generateHorizon) != 1) {
 					WriteLine ("Parameter to generate-horizon option invalid. See the usage help.");
 					exit (1);
 				}