src/test/SDL_test_assert.c
changeset 8830 2d74f0c59cc7
parent 8820 0e935d5b193a
child 9619 b94b6d0bff0f
     1.1 --- a/src/test/SDL_test_assert.c	Thu Jun 05 09:27:06 2014 -0700
     1.2 +++ b/src/test/SDL_test_assert.c	Thu Jun 05 09:49:45 2014 -0700
     1.3 @@ -46,7 +46,7 @@
     1.4   */
     1.5  void SDLTest_Assert(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription, ...)
     1.6  {
     1.7 -        va_list list;
     1.8 +    va_list list;
     1.9      char logMessage[SDLTEST_MAX_LOGMESSAGE_LENGTH];
    1.10  
    1.11      /* Print assert description into a buffer */
    1.12 @@ -56,7 +56,7 @@
    1.13      va_end(list);
    1.14  
    1.15      /* Log, then assert and break on failure */
    1.16 -    SDL_assert((SDLTest_AssertCheck(assertCondition, logMessage)));
    1.17 +    SDL_assert((SDLTest_AssertCheck(assertCondition, "%s", logMessage)));
    1.18  }
    1.19  
    1.20  /*