X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/a070c37b7e880ac3593c35da448fe7303e797004..dd04a03440be7c04ec7c3005d5fd92ec03311358:/io.c diff --git a/io.c b/io.c index a557a9b8..1b2fb221 100644 --- a/io.c +++ b/io.c @@ -218,6 +218,12 @@ void read_buf(int f,char *buf,int len) total_read += len; } +void read_sbuf(int f,char *buf,int len) +{ + read_buf(f,buf,len); + buf[len] = 0; +} + unsigned char read_byte(int f) { unsigned char c;