Commits

Michał Górny committed d175069

Fix the suffix substitution in the output filename.

Comments (0)

Files changed (1)

 			}
 
 			outbuf = g_strdup_printf("%s.iso", newargv[0]);
+			if (ext) /* replace the extension in the duplicated string */
+				strcpy(&outbuf[ext - newargv[0] + 1], "iso");
+
 			if (!force) {
 				FILE *tmp = fopen(outbuf, "r");
 				if (tmp || errno != ENOENT) {