aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-04-14 11:00:25 +0200
committerMarkus Uhlin <markus@nifty-networks.net>2024-04-14 11:00:25 +0200
commite31c221e197ea7b58f9e7cdcb6d09032f1fba43a (patch)
tree812f1b1e690b49a3e083792e57205edf83886247
parent80b59b53ae7ebf682dbd9711b7429a83b4183137 (diff)
Added blank lines
-rw-r--r--FICS/talkproc.c3
1 files changed, 3 insertions, 0 deletions
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;
}