IMG_jpg.c
changeset 22 5f9c7cfd0b79
parent 7 e1b6443ffb6b
child 27 34870338be23
     1.1 --- a/IMG_jpg.c	Tue Feb 27 21:29:11 2001 +0000
     1.2 +++ b/IMG_jpg.c	Fri Mar 02 22:48:41 2001 +0000
     1.3 @@ -47,7 +47,7 @@
     1.4  		if ( (magic[0] == 0xFF) && (magic[1] == 0xD8) ) {
     1.5  			SDL_RWread(src, magic, 4, 1);
     1.6  			SDL_RWread(src, magic, 4, 1);
     1.7 -			if ( strncmp(magic, "JFIF", 4) == 0 ) {
     1.8 +			if ( memcmp((char *)magic, "JFIF", 4) == 0 ) {
     1.9  				is_JPG = 1;
    1.10  			}
    1.11  		}