diff options
author | Christopher R. Hertel <crh@samba.org> | 1998-07-25 15:18:07 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 1998-07-25 15:18:07 +0000 |
commit | 899d0d5de5dd9d080d5c4cb94874d4f939427d1b (patch) | |
tree | eec1007bb9e6bdd0570b28d7d00ac10dced21f89 | |
parent | d8b0a2104c05df957f0eb49c21388ec5a4858d98 (diff) | |
download | samba-899d0d5de5dd9d080d5c4cb94874d4f939427d1b.tar.gz samba-899d0d5de5dd9d080d5c4cb94874d4f939427d1b.tar.xz samba-899d0d5de5dd9d080d5c4cb94874d4f939427d1b.zip |
Noticed that I was using the strlen() of a string that I had strdup()'d
before testing that the strdup() worked. Fixed.
-rw-r--r-- | source/smbd/mangle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c index 33fc729a7ff..f33b8ac2e64 100644 --- a/source/smbd/mangle.c +++ b/source/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 ); |