From ac875597290a4519d6bbb2c476c4ba7ad3cf51c3 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Sat, 19 Sep 1998 02:35:43 +0000 Subject: Remove some byte-copying code in unix_format() that did nothing except slow down my benchmark :-). Jeremy. (This used to be commit b55f93b213ee61c35e7a87a2be63191d55186bd6) --- source3/lib/util.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'source3/lib/util.c') diff --git a/source3/lib/util.c b/source3/lib/util.c index 7c37d15bb9..2df7689b94 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -924,15 +924,7 @@ void string_replace(char *s,char oldc,char newc) ****************************************************************************/ void unix_format(char *fname) { - pstring namecopy; string_replace(fname,'\\','/'); - - if (*fname == '/') - { - pstrcpy(namecopy,fname); - pstrcpy(fname,"."); - pstrcat(fname,namecopy); - } } /**************************************************************************** -- cgit