size hour array correctly
This commit is contained in:
parent
1a2b1dd165
commit
213643d5bf
|
@ -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 *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;
|
struct tm *now;
|
||||||
time_t s;
|
time_t s;
|
||||||
char *dest = bip_strdup(destination);
|
char *dest = bip_strdup(destination);
|
||||||
|
|
Loading…
Reference in New Issue