Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
a couple more system calls wrapped in syscall.c
[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;
}
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;
unsigned char read_byte(int f)
{
unsigned char c;