diff --git a/src/wofi.c b/src/wofi.c index bb08235..c96cb3e 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -1281,7 +1281,7 @@ static void do_copy(void) { } close(fds[0]); - if (write(fds[1], action, strlen(action)) != 0) { + if(write(fds[1], action, strlen(action)) <= 0) { fprintf(stderr, "fd pipe failed to write\n"); }