git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b1337e
)
specify the size of these buffers
author
Andrew Bartlett
<abartlet@samba.org>
Sat, 15 Mar 2003 06:51:57 +0000
(06:51 +0000)
committer
Andrew Bartlett
<abartlet@samba.org>
Sat, 15 Mar 2003 06:51:57 +0000
(06:51 +0000)
source/libsmb/clilist.c
patch
|
blob
|
history
diff --git
a/source/libsmb/clilist.c
b/source/libsmb/clilist.c
index 3884e4da828ef80b917914a916a39a74635dbe85..5bd1283ab7b47ff9697ceb0f73eaf6cd81dccbc6 100644
(file)
--- a/
source/libsmb/clilist.c
+++ b/
source/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);
}