From b19ae30e9845e3288fec41d38a4225cc7445a0e7 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 7 Aug 2014 09:03:28 -0400 Subject: [PATCH] Fixed a printf() format bug in the example code. --- IMG_xxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IMG_xxx.c b/IMG_xxx.c index 507950ff..b25e0ad0 100644 --- a/IMG_xxx.c +++ b/IMG_xxx.c @@ -65,7 +65,7 @@ SDL_Surface *IMG_LoadXXX_RW(SDL_RWops *src) SDL_FreeSurface(surface); surface = NULL; } - IMG_SetError(error); + IMG_SetError("%s", error); } return surface; }