strchr and strrchr are macros when compiling with optimisation in gcc, so we can...
[gd/samba/.git] / source / smbd / service.c
index 836ef30f80c695c0827ce0b2dd6b0e384cd3d1bc..04139be917b3c08ddcee6768fe1bbc99ef49dcfd 100644 (file)
@@ -102,7 +102,7 @@ int add_home_service(char *service, char *homedir)
 
        fstrcpy(new_service, service);
 
-       if ((usr_p = strchr(service,*lp_winbind_separator())) != NULL)
+       if ((usr_p = strchr_m(service,*lp_winbind_separator())) != NULL)
                fstrcpy(new_service, usr_p+1);
 
        lp_add_home(new_service,iHomeService,homedir);