mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-13 08:01:33 +01:00
add .2 for consistent time formatting
This commit is contained in:
parent
7a71c4636b
commit
7d411526d3
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ linux_debugf( const char* format, ... )
|
|||
gettimeofday( &tv, &tz );
|
||||
timp = localtime( &tv.tv_sec );
|
||||
|
||||
sprintf( buf, "<%d>%d:%d:%d: ", getpid(),
|
||||
snprintf( buf, sizeof(buf), "<%d>%.2d:%.2d:%.2d:", getpid(),
|
||||
timp->tm_hour, timp->tm_min, timp->tm_sec );
|
||||
|
||||
va_start(ap, format);
|
||||
|
|
Loading…
Reference in a new issue