]> git.sur5r.net Git - openocd/commitdiff
Improve orion_nand.c command argument parsing.
authorZachary T Welch <zw@superlucidity.net>
Fri, 23 Oct 2009 05:33:12 +0000 (22:33 -0700)
committerZachary T Welch <zw@superlucidity.net>
Fri, 6 Nov 2009 02:19:18 +0000 (18:19 -0800)
src/flash/orion_nand.c

index 94df17ba7210dc8ead1d84a9e9dc6e0621d21204..6e88f82a4d3c2a0c42e897e1155e95f331f8c801 100644 (file)
@@ -152,7 +152,7 @@ int orion_nand_device_command(struct command_context_s *cmd_ctx, char *cmd,
                return ERROR_NAND_DEVICE_INVALID;
        }
 
-       base = strtoul(args[2], NULL, 0);
+       COMMAND_PARSE_NUMBER(u32, args[2], base);
        cle = 0;
        ale = 1;