diff options
-rw-r--r-- | pttbbs/mbbsd/bbs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/bbs.c b/pttbbs/mbbsd/bbs.c index a0046a5f..d4f185e7 100644 --- a/pttbbs/mbbsd/bbs.c +++ b/pttbbs/mbbsd/bbs.c @@ -2668,7 +2668,7 @@ edit_title(int ent, fileheader_t * fhdr, const char *direct) getdata_buf(b_lines - 1, 0, "§@ªÌ¡G", tmpfhdr.owner, IDLEN + 2, DOECHO); getdata_str(b_lines - 1, 0, "¤é´Á¡G", datebuf, 6, DOECHO, tmpfhdr.date); // Normalize date to %.5s - snprintf(tmpfhdr.date, sizeof(tmpfhdr.date), "%.5s", datebuf); + snprintf(tmpfhdr.date, sizeof(tmpfhdr.date), "%5.5s", datebuf); } if (memcmp(&tmpfhdr, fhdr, sizeof(tmpfhdr)) == 0) return FULLUPDATE; |