diff options
| author | Martin Pool <mbp@samba.org> | 2002-01-23 04:57:18 +0000 |
|---|---|---|
| committer | Martin Pool <mbp@samba.org> | 2002-01-23 04:57:18 +0000 |
| commit | 9dd891bb28f6cc558b87905f1adc5e3d4180b6b3 (patch) | |
| tree | 92b34f29ab6525c348aa3eae923a3eabcc0eb47f /fileio.c | |
| parent | 99f106d1cfe06f6696d649bcb3533b44cfb4f562 (diff) | |
| download | android_external_rsync-9dd891bb28f6cc558b87905f1adc5e3d4180b6b3.tar.gz android_external_rsync-9dd891bb28f6cc558b87905f1adc5e3d4180b6b3.tar.bz2 android_external_rsync-9dd891bb28f6cc558b87905f1adc5e3d4180b6b3.zip | |
Signedness security patch from Sebastian Krahmer <krahmer@suse.de> --
in some cases we were not sufficiently careful about reading integers
from the network.
Also, make sure log messages are always nul-terminated.
Diffstat (limited to 'fileio.c')
| -rw-r--r-- | fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ int sparse_end(int f) } -static int write_sparse(int f,char *buf,int len) +static int write_sparse(int f,char *buf,size_t len) { int l1=0,l2=0; int ret; @@ -69,7 +69,7 @@ static int write_sparse(int f,char *buf,int len) -int write_file(int f,char *buf,int len) +int write_file(int f,char *buf,size_t len) { int ret = 0; |
