strchr and strrchr are macros when compiling with optimisation in gcc, so we can...
[gd/samba/.git] / source / torture / rpctorture.c
index b42c315b1db493acedd81be85fee7d3b0bafa5ae..1708e9a860ab7226c8d24ce74d137df2d6e622a5 100644 (file)
@@ -394,12 +394,12 @@ enum client_action
                        {
                                char *lp;
                                pstrcpy(smb_cli->user_name,optarg);
-                               if ((lp=strchr(smb_cli->user_name,'%')))
+                               if ((lp=strchr_m(smb_cli->user_name,'%')))
                                {
                                        *lp = 0;
                                        pstrcpy(password,lp+1);
                                        got_pass = True;
-                                       memset(strchr(optarg,'%')+1,'X',strlen(password));
+                                       memset(strchr_m(optarg,'%')+1,'X',strlen(password));
                                }
                                break;
                        }