Navigation Menu

Skip to content

Commit

Permalink
Fixed format warnings: format not a string literal and no format argu…
Browse files Browse the repository at this point in the history
…ments
  • Loading branch information
slouken committed Jun 15, 2014
1 parent e65731b commit 67df76d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion IMG_lbm.c
Expand Up @@ -476,7 +476,7 @@ SDL_Surface *IMG_LoadLBM_RW( SDL_RWops *src )
SDL_FreeSurface( Image );
Image = NULL;
}
IMG_SetError( error );
IMG_SetError( "%s", error );
}

return( Image );
Expand Down
2 changes: 1 addition & 1 deletion IMG_pcx.c
Expand Up @@ -254,7 +254,7 @@ SDL_Surface *IMG_LoadPCX_RW(SDL_RWops *src)
SDL_FreeSurface(surface);
surface = NULL;
}
IMG_SetError(error);
IMG_SetError("%s", error);
}
return(surface);
}
Expand Down
2 changes: 1 addition & 1 deletion IMG_png.c
Expand Up @@ -554,7 +554,7 @@ SDL_Surface *IMG_LoadPNG_RW(SDL_RWops *src)
SDL_FreeSurface(surface);
surface = NULL;
}
IMG_SetError(error);
IMG_SetError("%s", error);
}
return(surface);
}
Expand Down
2 changes: 1 addition & 1 deletion IMG_pnm.c
Expand Up @@ -236,7 +236,7 @@ SDL_Surface *IMG_LoadPNM_RW(SDL_RWops *src)
SDL_FreeSurface(surface);
surface = NULL;
}
IMG_SetError(error);
IMG_SetError("%s", error);
}
return(surface);
}
Expand Down
2 changes: 1 addition & 1 deletion IMG_tga.c
Expand Up @@ -323,7 +323,7 @@ SDL_Surface *IMG_LoadTGA_RW(SDL_RWops *src)
if ( img ) {
SDL_FreeSurface(img);
}
IMG_SetError(error);
IMG_SetError("%s", error);
return NULL;
}

Expand Down
2 changes: 1 addition & 1 deletion IMG_xcf.c
Expand Up @@ -818,7 +818,7 @@ SDL_Surface *IMG_LoadXCF_RW(SDL_RWops *src)
SDL_FreeSurface(surface);
surface = NULL;
}
IMG_SetError(error);
IMG_SetError("%s", error);
}

return(surface);
Expand Down
2 changes: 1 addition & 1 deletion IMG_xpm.c
Expand Up @@ -1143,7 +1143,7 @@ static SDL_Surface *load_xpm(char **xpm, SDL_RWops *src)
SDL_FreeSurface(image);
image = NULL;
}
IMG_SetError(error);
IMG_SetError("%s", error);
}
if (keystrings)
SDL_free(keystrings);
Expand Down
2 changes: 1 addition & 1 deletion IMG_xv.c
Expand Up @@ -143,7 +143,7 @@ SDL_Surface *IMG_LoadXV_RW(SDL_RWops *src)
SDL_FreeSurface(surface);
surface = NULL;
}
IMG_SetError(error);
IMG_SetError("%s", error);
}
return surface;
}
Expand Down

0 comments on commit 67df76d

Please sign in to comment.