size hour array correctly

This commit is contained in:
Arnaud Cornet 2009-07-05 19:35:00 +02:00
parent 1a2b1dd165
commit 213643d5bf
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ void replace_var(char *str, char *var, char *value, unsigned int max)
char *log_build_filename(log_t *logdata, const char *destination)
{
char *logfile, year[5], day[3], month[3], hour[2], *tmp, *logdir;
char *logfile, year[5], day[3], month[3], hour[3], *tmp, *logdir;
struct tm *now;
time_t s;
char *dest = bip_strdup(destination);