aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/FICS/utils.c b/FICS/utils.c
index 0b44afa..ae45924 100644
--- a/FICS/utils.c
+++ b/FICS/utils.c
@@ -675,7 +675,8 @@ psend_command(int p, char *command, char *input)
return -1;
if (input) {
- fwrite(input, sizeof(char), strlen(input), fp);
+ if (fwrite(input, sizeof(char), strlen(input), fp) == 0)
+ warnx("%s: fwrite: zero return", __func__);
} else {
while (!feof(fp)) {
num = fread(tmp, sizeof(char), MAX_LINE_SIZE - 1, fp);