diff options
author | Stefan Behrens <sbehrens@giantdisaster.de> | 2015-04-21 13:50:38 +0200 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2015-04-22 10:31:04 -0700 |
commit | 3ea74eb3880b4fda95fced4f605bb96f19dd4b0f (patch) | |
tree | 6da41603e9d6d8b060725eac59b3a39e7c8e34a8 | |
parent | 962f8b90045ab331fc04c9e65f80f1a53e68243b (diff) | |
download | android_external_rsync-3ea74eb3880b4fda95fced4f605bb96f19dd4b0f.tar.gz android_external_rsync-3ea74eb3880b4fda95fced4f605bb96f19dd4b0f.tar.bz2 android_external_rsync-3ea74eb3880b4fda95fced4f605bb96f19dd4b0f.zip |
rsync: fix of-by-one in check of snprintf() result.
Fixes bug 11229.
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2283,7 +2283,7 @@ void io_printf(int fd, const char *format, ...) if (len < 0) exit_cleanup(RERR_PROTOCOL); - if (len > (int)sizeof buf) { + if (len >= (int)sizeof buf) { rprintf(FERROR, "io_printf() was too long for the buffer.\n"); exit_cleanup(RERR_PROTOCOL); } |