strchr and strrchr are macros when compiling with optimisation in gcc, so we can...
[gd/samba/.git] / source / smbd / vfs.c
index 747d393386a48349ebce74cb568935670a9c181d..71ebf9b506b99c1b3ff84196e3de756f78d4d878 100644 (file)
@@ -705,7 +705,7 @@ BOOL reduce_name(connection_struct *conn, char *s,char *dir,BOOL widelinks)
   all_string_sub(s,"//","/",0);
 
   pstrcpy(base_name,s);
-  p = strrchr(base_name,'/');
+  p = strrchr_m(base_name,'/');
 
   if (!p)
     return(True);