diff simtool/erasefile.c @ 206:f1cf569dbba3

fc-simtool erase-file & update-rec-fill: make fill byte always hex
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Mar 2021 05:21:24 +0000
parents bc127ba44488
children
line wrap: on
line diff
--- a/simtool/erasefile.c	Sun Mar 07 05:19:31 2021 +0000
+++ b/simtool/erasefile.c	Sun Mar 07 05:21:24 2021 +0000
@@ -84,7 +84,7 @@
 	if (rc < 0)
 		return(rc);
 	if (argc > 2) {
-		fill_byte = strtoul(argv[2], 0, 0);
+		fill_byte = strtoul(argv[2], 0, 16);
 		if (fill_byte > 0xFF) {
 			fprintf(stderr, "error: invalid fill byte argument\n");
 			return(-1);