git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6608b5
)
Noticed that I was using the strlen() of a string that I had strdup()'d
author
Christopher R. Hertel
<crh@samba.org>
Sat, 25 Jul 1998 15:18:07 +0000
(15:18 +0000)
committer
Christopher R. Hertel
<crh@samba.org>
Sat, 25 Jul 1998 15:18:07 +0000
(15:18 +0000)
before testing that the strdup() worked. Fixed.
(This used to be commit
899d0d5de5dd9d080d5c4cb94874d4f939427d1b
)
source3/smbd/mangle.c
patch
|
blob
|
history
diff --git
a/source3/smbd/mangle.c
b/source3/smbd/mangle.c
index 33fc729a7ff364d0a80a2f1a18b1efb273807a29..f33b8ac2e64478090bf8463a8e66c04a1044afe3 100644
(file)
--- a/
source3/smbd/mangle.c
+++ b/
source3/smbd/mangle.c
@@
-995,7
+995,7
@@
BOOL name_map_mangle( char *OutName, BOOL need83, int snum )
/* mangle it into 8.3 */
tmp = strdup( OutName );
- mangle_name_83( OutName, strlen(
tmp
) );
+ mangle_name_83( OutName, strlen(
OutName
) );
if( tmp )
{
cache_mangled_name( OutName, tmp );