logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git/
commit: 05b2b2f9ea1fd62985d587f6b326d4a3c0aedd8c
parent 7b070c736d6ee331a7b0f19e090667434f6383e0
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 24 Feb 2025 21:22:33 +0100

cmd/split: fix fwrite error check

Diffstat:

Mcmd/split.c2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/split.c b/cmd/split.c @@ -195,7 +195,7 @@ split_lines(void) } } - if(fwrite(line, nread, 1, out) < 0) + if(fwrite(line, nread, 1, out) == 0) { fprintf(stderr, "%s: error: Failed writing line to file '%s': %s\n",