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

(-)file_not_specified_in_diff (-1 / +8 lines)
Line  Link Here
0
-- xmp-3.5.0.org/src/misc/load.c
0
++ xmp-3.5.0.mod/src/misc/load.c
Lines 105-116 Link Here
105
    if ((headersize = fread(b, 1, 1024, *f)) < 100)	/* minimum valid file size */
105
    if ((headersize = fread(b, 1, 1024, *f)) < 100)	/* minimum valid file size */
106
	return 0;
106
	return 0;
107
107
108
	size_t sl=strlen(*s);
109
	
108
#if defined __AMIGA__ && !defined __AROS__
110
#if defined __AMIGA__ && !defined __AROS__
109
    if (packer = test_xfd(b, 1024)) {
111
    if (packer = test_xfd(b, 1024)) {
110
	builtin = BUILTIN_XFD;
112
	builtin = BUILTIN_XFD;
111
    } else
113
    } else
112
#endif
114
#endif
113
115
116
	if (!strcmp((*s)+sl-5,".lzma")) {
117
		packer = "lzma";
118
		cmd = "lzma -dc \"%s\"";
119
	} else
120
	
114
    if (b[0] == 'P' && b[1] == 'K' &&
121
    if (b[0] == 'P' && b[1] == 'K' &&
115
	((b[2] == 3 && b[3] == 4) || (b[2] == '0' && b[3] == '0' &&
122
	((b[2] == 3 && b[3] == 4) || (b[2] == '0' && b[3] == '0' &&
116
	b[4] == 'P' && b[5] == 'K' && b[6] == 3 && b[7] == 4))) {
123
	b[4] == 'P' && b[5] == 'K' && b[6] == 3 && b[7] == 4))) {

Return to bug 418185