git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdf4c4c
)
fixed parsing of broken NT short name
author
Andrew Tridgell
<tridge@samba.org>
Sun, 30 Apr 2000 14:58:13 +0000
(14:58 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Sun, 30 Apr 2000 14:58:13 +0000
(14:58 +0000)
source/libsmb/clilist.c
patch
|
blob
|
history
diff --git
a/source/libsmb/clilist.c
b/source/libsmb/clilist.c
index 4374973fa9452a8b055ed666e19a102659656164..f3e40335398639f031bfab284165e951cfbef0d4 100644
(file)
--- a/
source/libsmb/clilist.c
+++ b/
source/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;