FreeCalypso > hg > fc-pcsc-tools
changeset 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 | fc82f0464480 |
children | fc0ab2b0c56e |
files | simtool/erasefile.c simtool/writecmd.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
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);
--- 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);