summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-04-30 14:58:13 +0000
committerAndrew Tridgell <tridge@samba.org>2000-04-30 14:58:13 +0000
commit2fb2ae187d34adb7621608c82ea793e2d0bb41eb (patch)
tree0b169bfbc0ea7812c214b71f282b794cca116ecc /source3/libsmb
parent481ca7c67ccbe18c7773d2ddb27d7ebb389e4276 (diff)
downloadsamba-2fb2ae187d34adb7621608c82ea793e2d0bb41eb.tar.gz
samba-2fb2ae187d34adb7621608c82ea793e2d0bb41eb.tar.bz2
samba-2fb2ae187d34adb7621608c82ea793e2d0bb41eb.zip
fixed parsing of broken NT short name
(This used to be commit 9e4b3529455840f11940136dd55c641d89b46961)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clilist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/clilist.c b/source3/libsmb/clilist.c
index 4374973fa9..f3e4033539 100644
--- a/source3/libsmb/clilist.c
+++ b/source3/libsmb/clilist.c
@@ -126,7 +126,7 @@ static int interpret_long_filename(int level,char *p,file_info *finfo)
p += 2;
if (p[1] == 0 && slen > 1) {
/* NT has stuffed up again */
- unistr_to_ascii(finfo->short_name, p, 24);
+ unistr_to_ascii(finfo->short_name, p, slen/2);
} else {
strncpy(finfo->short_name, p, 12);
finfo->short_name[12] = 0;