diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-19 13:57:28 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2014-04-01 09:08:05 +0200 |
commit | ab7c46cc04abf5cc9380ca499462cd4257b96281 (patch) | |
tree | a575e962e8ca7310185956e5186656a260518b15 /source3 | |
parent | eeb901b60cb489548e38fd7c429d4a1946684e1d (diff) | |
download | samba-ab7c46cc04abf5cc9380ca499462cd4257b96281.tar.gz |
s3:client: only limit the buffer by the given length 'n'
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit f0f245f4c8b1a506e8d06c72d3d6680b95738714)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/client/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 49519afddb5..a3a1d0a7687 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -235,7 +235,7 @@ static int readfile(uint8_t *b, int n, XFILE *f) return x_fread(b,1,n,f); i = 0; - while (i < (n - 1) && (i < BUFFER_SIZE)) { + while (i < (n - 1)) { if ((c = x_getc(f)) == EOF) { break; } |