Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 135881
Collapse All | Expand All

(-)tiff-3.7.4-old/tools/tiffsplit.c (-3 / +2 lines)
Lines 60-73 Link Here
60
		return (-3);
60
		return (-3);
61
	}
61
	}
62
	if (argc > 2)
62
	if (argc > 2)
63
		strcpy(fname, argv[2]);
63
		snprintf(fname, sizeof(fname), "%s", argv[2]);
64
	in = TIFFOpen(argv[1], "r");
64
	in = TIFFOpen(argv[1], "r");
65
	if (in != NULL) {
65
	if (in != NULL) {
66
		do {
66
		do {
67
			char path[1024+1];
67
			char path[1024+1];
68
			newfilename();
68
			newfilename();
69
			strcpy(path, fname);
69
			snprintf(path, sizeof(path), "%s.tif", fname);
70
			strcat(path, ".tif");
71
			out = TIFFOpen(path, TIFFIsBigEndian(in)?"wb":"wl");
70
			out = TIFFOpen(path, TIFFIsBigEndian(in)?"wb":"wl");
72
			if (out == NULL)
71
			if (out == NULL)
73
				return (-2);
72
				return (-2);

Return to bug 135881