src/test/SDL_test_log.c
changeset 7405 5a9172b56b18
parent 7191 75360622e65f
child 7678 286c42d7c5ed
     1.1 --- a/src/test/SDL_test_log.c	Thu Jul 11 12:44:03 2013 -0400
     1.2 +++ b/src/test/SDL_test_log.c	Thu Jul 11 23:17:52 2013 -0400
     1.3 @@ -55,11 +55,12 @@
     1.4      time_t copy;
     1.5      static char buffer[64];
     1.6      struct tm *local;
     1.7 +    const char *fmt = "%x %X";
     1.8  
     1.9 -    SDL_memset(buffer, 0, sizeof(buffer));\
    1.10 +    SDL_memset(buffer, 0, sizeof(buffer));
    1.11      copy = timestamp;
    1.12      local = localtime(&copy);
    1.13 -    strftime(buffer, sizeof(buffer), "%x %X", local);
    1.14 +    strftime(buffer, sizeof(buffer), fmt, local);
    1.15  
    1.16      return buffer;
    1.17  }