Skip to content

Commit

Permalink
Fix #1376299
Browse files Browse the repository at this point in the history
  • Loading branch information
vanosg committed Jan 2, 2017
1 parent d39d182 commit c7ec99d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod/notes.mod/notes.c
Expand Up @@ -510,7 +510,7 @@ static void notes_read(char *hand, char *nick, char *srd, int idx)
lapse = (int) ((now - tt) / 86400);
if (lapse > note_life - 7) {
if (lapse >= note_life)
strcat(dt, NOTES_EXPIRE_TODAY);
strncat(dt, NOTES_EXPIRE_TODAY, sizeof dt - strlen(dt) - 1);
else
sprintf(&dt[strlen(dt)], NOTES_EXPIRE_XDAYS, note_life - lapse,
(note_life - lapse) == 1 ? "" : "S");
Expand Down

0 comments on commit c7ec99d

Please sign in to comment.