sendselector(): fix written bytes check - sacc - sacc(omys), simple console gopher client
 (HTM) git clone git://bitreich.org/sacc/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sacc/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) LICENSE
       ---
 (DIR) commit 27cb63c816b91708b4c4650709490b14cd5ac59e
 (DIR) parent 802d765ffd723b0e3298d6f070bf5301ae0ddadd
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sun, 25 Feb 2018 16:34:33 +0100
       
       sendselector(): fix written bytes check
       
       Diffstat:
         M sacc.c                              |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/sacc.c b/sacc.c
       @@ -386,7 +386,7 @@ sendselector(int sock, const char *selector)
                msg = p = xmalloc(ln);
                snprintf(msg, ln--, "%s\r\n", selector);
        
       -        while ((n = write(sock, p, ln)) != -1 && n != 0) {
       +        while ((n = write(sock, p, ln)) > 0) {
                        ln -= n;
                        p += n;
                }