changeset 980:a0879ce32d2c

fc-tmsh omr command: always interpret both arguments as hex
author Mychaela Falconia <falcon@ivan.Harhan.ORG>
date Thu, 10 Dec 2015 04:28:52 +0000
parents ebdf5afa9fb5
children 0feb3db6f097
files rvinterf/tmsh/omr.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rvinterf/tmsh/omr.c	Thu Dec 10 04:28:19 2015 +0000
+++ b/rvinterf/tmsh/omr.c	Thu Dec 10 04:28:52 2015 +0000
@@ -76,7 +76,7 @@
 	u_char cmdpkt[11];
 
 	addr = strtoul(argv[1], 0, 16);
-	size = strtoul(argv[2], 0, 0);
+	size = strtoul(argv[2], 0, 16);
 	if (size < 1 || size > TM3_MEMREAD_MAX) {
 		printf("error: count argument outside valid range\n");
 		return;