Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Attempt to fix a compiler warning on Haiku.
Browse files Browse the repository at this point in the history
(if this works...Haiku generates no warnings. I know, right?!?)
  • Loading branch information
icculus committed Jul 12, 2013
1 parent 0449a59 commit f1306b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/test/SDL_test_log.c
Expand Up @@ -55,11 +55,12 @@ char *SDLTest_TimestampToString(const time_t timestamp)
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;
}
Expand Down

0 comments on commit f1306b1

Please sign in to comment.