aboutsummaryrefslogtreecommitdiff
path: root/tests/sdl_image_prepare_data.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-18 20:25:40 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-18 20:25:40 -0700
commitad01a1896200d9ab8eff3f8485a99e70e72530c4 (patch)
treee204d6cde21933e39981f5ddd09cef4eb4cd3018 /tests/sdl_image_prepare_data.c
parent3963031492acab163f8fa440aaf50661d954506b (diff)
parent9ee4ca4af663921dace9aa6bcdd206825adf145e (diff)
Merge pull request #1304 from int3/sdl
Fix SDL color encoding
Diffstat (limited to 'tests/sdl_image_prepare_data.c')
-rw-r--r--tests/sdl_image_prepare_data.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/sdl_image_prepare_data.c b/tests/sdl_image_prepare_data.c
index 87e33399..d45a2e60 100644
--- a/tests/sdl_image_prepare_data.c
+++ b/tests/sdl_image_prepare_data.c
@@ -1,4 +1,6 @@
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <SDL/SDL.h>
#include <SDL/SDL_image.h>
#include <assert.h>
@@ -43,7 +45,7 @@ void ready(void *arg, const char *fileName) {
testImage(seenName);
- free(seenName); // As the API docs say, we are responsible for freeing the 'fake' names we are given
+ free((void*)seenName); // As the API docs say, we are responsible for freeing the 'fake' names we are given
SDL_Flip(screen);
}