This commit is contained in:
Your Name 2025-04-13 18:42:20 +03:00
parent 674a5db917
commit 570bff605f
3 changed files with 4 additions and 5 deletions

2
main.c
View file

@ -53,7 +53,7 @@ char *GetFilename(void) {
die("localtime()");
static char filename[PATH_MAX + 1];
snprintf(filename, PATH_MAX, "%s_%d-%d-%d%s", ircbot.irc_channel + 1, tm->tm_mday, tm->tm_mon, 1900 + tm->tm_year, cfg.ext);
snprintf(filename, PATH_MAX, "%s_%d-%d-%d%s", ircbot.irc_channel, tm->tm_mday, tm->tm_mon, 1900 + tm->tm_year, cfg.ext);
return filename;
}