Noticed that I was using the strlen() of a string that I had strdup()'d
authorChristopher R. Hertel <crh@samba.org>
Sat, 25 Jul 1998 15:18:07 +0000 (15:18 +0000)
committerChristopher 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

index 33fc729a7ff364d0a80a2f1a18b1efb273807a29..f33b8ac2e64478090bf8463a8e66c04a1044afe3 100644 (file)
@@ -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 );