commit 76a0f9319e1b1b5c11f637ca71ee5f7a183e6069 from: Markus Uhlin date: Sat Mar 7 21:20:03 2026 UTC Check the return value of fwrite() commit - 16bb8d07c235e9ba35ff897be9a59e3cc7cbdc79 commit + 76a0f9319e1b1b5c11f637ca71ee5f7a183e6069 blob - 0b44afa542258dccd3bd55e226bd3dd398a74e18 blob + ae45924dddad6f129b3c228f3e13f5bbc58988fc --- FICS/utils.c +++ 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);