fixed a string termination bug in the uidlist handling code. I've also
[rsync/rsync.git] / io.c
diff --git a/io.c b/io.c
index a557a9b..1b2fb22 100644 (file)
--- 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;