diff options
Diffstat (limited to 'source3/libsmb/clilist.c')
-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 f7044b27e8..9348b65bad 100644 --- a/source3/libsmb/clilist.c +++ b/source3/libsmb/clilist.c @@ -140,8 +140,8 @@ static int interpret_long_filename(struct cli_state *cli, p += 24; /* short name? */ clistr_pull(cli, finfo->name, p, sizeof(finfo->name), - -1, - CLISTR_TERMINATE | CLISTR_CONVERT); + namelen, + CLISTR_CONVERT); return(ret); } return(SVAL(p,0)); |