strchr and strrchr are macros when compiling with optimisation in gcc, so we can...
[kai/samba-autobuild/.git] / source3 / utils / nmblookup.c
index adb75e6104f14d87627008c453bd44992add64cd..3e2f0610e6cb84ae96564deea60226c49f539b89 100644 (file)
@@ -303,7 +303,7 @@ int main(int argc,char *argv[])
        }
       }
 
-      p = strchr(lookup,'#');
+      p = strchr_m(lookup,'#');
       if (p) {
         *p = '\0';
         sscanf(++p,"%x",&lookup_type);