diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-03-15 06:51:57 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-03-15 06:51:57 +0000 |
commit | eca1293fadf8774f016e18ca56ac200546ca70ba (patch) | |
tree | caa495362f67002bb03a93b9e0a739bbee2a3b2d | |
parent | 58abc7b5b623e19d81586db4ae834c8e18e83082 (diff) | |
download | samba-eca1293fadf8774f016e18ca56ac200546ca70ba.tar.gz samba-eca1293fadf8774f016e18ca56ac200546ca70ba.tar.bz2 samba-eca1293fadf8774f016e18ca56ac200546ca70ba.zip |
specify the size of these buffers
(This used to be commit f6ea572cd57d4e655d387fe225a5d7122d587a9b)
-rw-r--r-- | source3/libsmb/clilist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c index 3884e4da82..5bd1283ab7 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -178,7 +178,7 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute, SSVAL(param,6,info_level); SIVAL(param,8,0); p = param+12; - p += clistr_push(cli, param+12, mask, -1, + p += clistr_push(cli, param+12, mask, sizeof(param)-12, STR_TERMINATE); } else { setup = TRANSACT2_FINDNEXT; @@ -188,7 +188,7 @@ int cli_list_new(struct cli_state *cli,const char *Mask,uint16 attribute, SIVAL(param,6,0); /* ff_resume_key */ SSVAL(param,10,8+4+2); /* continue + resume required + close on end */ p = param+12; - p += clistr_push(cli, param+12, mask, -1, + p += clistr_push(cli, param+12, mask, sizeof(param)-12, STR_TERMINATE); } |