From: Zachary T Welch Date: Fri, 23 Oct 2009 05:33:12 +0000 (-0700) Subject: Improve orion_nand.c command argument parsing. X-Git-Tag: v0.4.0-rc1~921 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=266c423bbdea4e09c6b1f6cd216f872f8e3ef3f8;p=openocd Improve orion_nand.c command argument parsing. --- diff --git a/src/flash/orion_nand.c b/src/flash/orion_nand.c index 94df17ba..6e88f82a 100644 --- a/src/flash/orion_nand.c +++ b/src/flash/orion_nand.c @@ -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;