strchr and strrchr are macros when compiling with optimisation in gcc, so we can...
[kai/samba-autobuild/.git] / source3 / utils / rpccheck.c
index f504463027cccd2341f964e09151b2c21e867775..1b00d528ac7b1829a15f9fe7433cc1b34006d8c0 100644 (file)
@@ -46,7 +46,7 @@ main()
        prs_init(&ps, 1600, 4, ctx, MARSHALL);
 
        while (scanf("%s", s)!=-1) {
-               if (strlen(s)==2 && strchr(filter, *s)!=NULL && strchr(filter, *(s+1))!=NULL) {
+               if (strlen(s)==2 && strchr_m(filter, *s)!=NULL && strchr_m(filter, *(s+1))!=NULL) {
                        d=strtol(s, NULL, 16);
                        if(!prs_append_data(&ps, &d, 1))
                                printf("error while reading data\n");