From e31c221e197ea7b58f9e7cdcb6d09032f1fba43a Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 14 Apr 2024 11:00:25 +0200 Subject: Added blank lines --- FICS/talkproc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'FICS/talkproc.c') diff --git a/FICS/talkproc.c b/FICS/talkproc.c index 60c5d69..699173a 100644 --- a/FICS/talkproc.c +++ b/FICS/talkproc.c @@ -753,8 +753,10 @@ com_mailmess(int p, param_list param) if (search_directory(mdir, filename, buffer, 1000)) { snprintf(subj, sizeof subj, "Your FICS messages from server %s", fics_hostname); + ret = snprintf(fname, sizeof fname, "%s/%s", mdir, filename); too_long = (ret < 0 || (size_t)ret >= sizeof fname); + if (!too_long) { mail_file_to_user(p, subj, fname); pprintf(p, "Messages sent to %s\n", @@ -763,6 +765,7 @@ com_mailmess(int p, param_list param) } else { pprintf(p, "You have no messages.\n"); } + return COM_OK; } -- cgit v1.2.3