strchr and strrchr are macros when compiling with optimisation in gcc, so we can...
[gd/samba/.git] / source / rpc_server / srv_dfs_nt.c
index 54c3fbf324c17dd4e289a252bac0f0aab70fb3bb..a84f2ceb48e07daebddbf6ea04ce2f277af9b8d5 100644 (file)
@@ -253,7 +253,7 @@ static BOOL init_reply_dfs_info_3(TALLOC_CTX *ctx, struct junction_map* j, DFS_I
          
          pstrcpy(path, ref->alternate_path);
          trim_string(path,"\\","");
-         p = strrchr(path,'\\');
+         p = strrchr_m(path,'\\');
          if(p==NULL)
            {
              DEBUG(4,("init_reply_dfs_info_3: invalid path: no \\ found in %s\n",path));