diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-10-22 22:33:12 -0700 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-05 18:19:18 -0800 |
commit | 266c423bbdea4e09c6b1f6cd216f872f8e3ef3f8 (patch) | |
tree | 4231102e2f966b1a6ac4926069c758e44feb7249 /src | |
parent | 7b49739790cf8c7638ff11573c0e40626b936d3d (diff) | |
download | openocd_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.
Diffstat (limited to 'src')
-rw-r--r-- | src/flash/orion_nand.c | 2 |
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; |