diff --git a/src/kws.c b/src/kws.c index 71ab949..d84c2a6 100644 --- a/src/kws.c +++ b/src/kws.c @@ -650,7 +650,7 @@ KS_DECLARE(ks_ssize_t) kws_raw_write(kws_t *kws, void *data, ks_size_t bytes) //printf("wRITE FAIL: %s\n", strerror(errno)); //} - return r; + return wrote; } static void setup_socket(ks_socket_t sock)