From 0fa2fde675da991096afc9abf896602d7a3803ab Mon Sep 17 00:00:00 2001 From: "Christopher R. Hertel" Date: Sat, 25 Jul 1998 15:18:07 +0000 Subject: [PATCH] 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) --- source3/smbd/mangle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c index 33fc729a7ff..f33b8ac2e64 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 ); -- 2.11.4.GIT