summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-02-19 13:57:28 +0100
committerJeremy Allison <jra@samba.org>2014-03-05 10:06:24 -0800
commitf0f245f4c8b1a506e8d06c72d3d6680b95738714 (patch)
tree82bda8878572cfec9c5d6bb56f2f3e72fdc3e55d /source3
parent05e821b220328b88dd9eece919b8adee3e4281ac (diff)
downloadsamba-f0f245f4c8b1a506e8d06c72d3d6680b95738714.tar.gz
samba-f0f245f4c8b1a506e8d06c72d3d6680b95738714.tar.xz
samba-f0f245f4c8b1a506e8d06c72d3d6680b95738714.zip
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>
Diffstat (limited to 'source3')
-rw-r--r--source3/client/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 5157fc9797..9e1f83d3bd 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -226,7 +226,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;
}