FreeCalypso > hg > fc-pcsc-tools
diff simtool/writecmd.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 | a462012c9e67 |
children |
line wrap: on
line diff
--- a/simtool/writecmd.c Sun Mar 07 05:19:31 2021 +0000 +++ b/simtool/writecmd.c Sun Mar 07 05:21:24 2021 +0000 @@ -119,7 +119,7 @@ } mode = 0x04; } - 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);