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