Fix build when size_t is not available in bfd-in2.h
[deliverable/binutils-gdb.git] / gdb / reverse.c
index e0946c80ba830883d5d88f80eed968c84c8addaa..ed55a3a4ddab585b0d4a64cad0da68c77e7f919b 100644 (file)
@@ -255,9 +255,9 @@ goto_bookmark_command (char *args, int from_tty)
   if (args == NULL || args[0] == '\0')
     error (_("Command requires an argument."));
 
-  if (strncmp (args, "start", strlen ("start")) == 0
-      || strncmp (args, "begin", strlen ("begin")) == 0
-      || strncmp (args, "end",   strlen ("end")) == 0)
+  if (startswith (args, "start")
+      || startswith (args, "begin")
+      || startswith (args, "end"))
     {
       /* Special case.  Give target opportunity to handle.  */
       target_goto_bookmark ((gdb_byte *) args, from_tty);
This page took 0.028862 seconds and 4 git commands to generate.