summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-10-22 22:33:12 -0700
committerZachary T Welch <zw@superlucidity.net>2009-11-05 18:19:18 -0800
commit266c423bbdea4e09c6b1f6cd216f872f8e3ef3f8 (patch)
tree4231102e2f966b1a6ac4926069c758e44feb7249
parent7b49739790cf8c7638ff11573c0e40626b936d3d (diff)
downloadopenocd_libswd-266c423bbdea4e09c6b1f6cd216f872f8e3ef3f8.tar.gz
openocd_libswd-266c423bbdea4e09c6b1f6cd216f872f8e3ef3f8.tar.bz2
openocd_libswd-266c423bbdea4e09c6b1f6cd216f872f8e3ef3f8.tar.xz
openocd_libswd-266c423bbdea4e09c6b1f6cd216f872f8e3ef3f8.zip
Improve orion_nand.c command argument parsing.
-rw-r--r--src/flash/orion_nand.c2
1 files changed, 1 insertions, 1 deletions
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;