FreeCalypso > hg > freecalypso-hwlab
diff uicc/writecmd.c @ 158:65a2a96386cd
fc-uicc-tool: hex string parsing with min and max length,
matching fc-simtool
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 07 Feb 2021 04:00:27 +0000 |
parents | 14dee03e9675 |
children |
line wrap: on
line diff
--- a/uicc/writecmd.c Sun Feb 07 02:47:51 2021 +0000 +++ b/uicc/writecmd.c Sun Feb 07 04:00:27 2021 +0000 @@ -36,7 +36,7 @@ fprintf(stderr, "error: offset argument is out of range\n"); return(-1); } - rc = decode_hex_data_from_string(argv[2], data, 255); + rc = decode_hex_data_from_string(argv[2], data, 1, 255); if (rc < 0) return(rc); len = rc;