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 | 0fa2fde675da991096afc9abf896602d7a3803ab (patch) | |
tree | 7cc167ef5fd74a6b3119612161adfefed7887e3e | |
parent | e6608b5279dcb258fa97d7719e854b72de84b9b9 (diff) | |
download | samba-0fa2fde675da991096afc9abf896602d7a3803ab.tar.gz samba-0fa2fde675da991096afc9abf896602d7a3803ab.tar.bz2 samba-0fa2fde675da991096afc9abf896602d7a3803ab.zip |
Noticed that I was using the strlen() of a string that I had strdup()'d
before testing that the strdup() worked. Fixed.
(This used to be commit 899d0d5de5dd9d080d5c4cb94874d4f939427d1b)
-rw-r--r-- | source3/smbd/mangle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c index 33fc729a7f..f33b8ac2e6 100644 --- 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 ); |