src/video/SDL_bmp.c
changeset 1336 3692456e7b0f
parent 1330 450721ad5436
child 1358 c71e05b4dc2e
     1.1 --- a/src/video/SDL_bmp.c	Mon Feb 06 17:28:04 2006 +0000
     1.2 +++ b/src/video/SDL_bmp.c	Tue Feb 07 06:59:48 2006 +0000
     1.3 @@ -98,7 +98,7 @@
     1.4  		was_error = 1;
     1.5  		goto done;
     1.6  	}
     1.7 -	if ( strncmp(magic, "BM", 2) != 0 ) {
     1.8 +	if ( SDL_strncmp(magic, "BM", 2) != 0 ) {
     1.9  		SDL_SetError("File is not a Windows BMP file");
    1.10  		was_error = 1;
    1.11  		goto done;
    1.12 @@ -135,7 +135,7 @@
    1.13  	}
    1.14  
    1.15  	/* Check for read error */
    1.16 -	if ( strcmp(SDL_GetError(), "") != 0 ) {
    1.17 +	if ( SDL_strcmp(SDL_GetError(), "") != 0 ) {
    1.18  		was_error = 1;
    1.19  		goto done;
    1.20  	}
    1.21 @@ -519,7 +519,7 @@
    1.22  	if ( freedst && dst ) {
    1.23  		SDL_RWclose(dst);
    1.24  	}
    1.25 -	return((strcmp(SDL_GetError(), "") == 0) ? 0 : -1);
    1.26 +	return((SDL_strcmp(SDL_GetError(), "") == 0) ? 0 : -1);
    1.27  }
    1.28  
    1.29  #endif /* ENABLE_FILE */