ftpd: fix MDTM's month value. Closes 5336

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2012-07-11 00:16:08 +02:00
parent 566a313a7f
commit 3bb858765e

View File

@ -821,7 +821,7 @@ handle_size_or_mdtm(int need_size)
gmtime_r(&statbuf.st_mtime, &broken_out);
sprintf(buf, STR(FTP_STATFILE_OK)" %04u%02u%02u%02u%02u%02u\r\n",
broken_out.tm_year + 1900,
broken_out.tm_mon,
broken_out.tm_mon + 1,
broken_out.tm_mday,
broken_out.tm_hour,
broken_out.tm_min,