Code analysis annotations found a legitimate bug!
authorSam Lantinga <slouken@libsdl.org>
Thu, 05 Jun 2014 09:49:45 -0700
changeset 8830 2d74f0c59cc7
parent 8829 6ed74a27066a
child 8831 9326ec96c132
Code analysis annotations found a legitimate bug!
src/test/SDL_test_assert.c
--- a/src/test/SDL_test_assert.c	Thu Jun 05 09:27:06 2014 -0700
+++ b/src/test/SDL_test_assert.c	Thu Jun 05 09:49:45 2014 -0700
@@ -46,7 +46,7 @@
  */
 void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...)
 {
-        va_list list;
+    va_list list;
     char logMessage[SDLTEST_MAX_LOGMESSAGE_LENGTH];
 
     /* Print assert description into a buffer */
@@ -56,7 +56,7 @@
     va_end(list);
 
     /* Log, then assert and break on failure */
-    SDL_assert((SDLTest_AssertCheck(assertCondition, logMessage)));
+    SDL_assert((SDLTest_AssertCheck(assertCondition, "%s", logMessage)));
 }
 
 /*