=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/atomicio.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- src/usr.bin/ssh/atomicio.c 2000/09/07 20:27:49 1.5 +++ src/usr.bin/ssh/atomicio.c 2000/10/17 20:28:10 1.6 @@ -24,7 +24,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: atomicio.c,v 1.5 2000/09/07 20:27:49 deraadt Exp $"); +RCSID("$OpenBSD: atomicio.c,v 1.6 2000/10/17 20:28:10 markus Exp $"); #include "xmalloc.h" #include "ssh.h" @@ -49,7 +49,7 @@ if (errno == EINTR || errno == EAGAIN) continue; case 0: - return (res); + return (pos); default: pos += res; }