diff uicc/select.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 429a8f80426e
children
line wrap: on
line diff
--- a/uicc/select.c	Sun Feb 07 02:47:51 2021 +0000
+++ b/uicc/select.c	Sun Feb 07 04:00:27 2021 +0000
@@ -234,7 +234,7 @@
 	unsigned aid_len;
 	int rc;
 
-	rc = decode_hex_data_from_string(argv[1], aid, 16);
+	rc = decode_hex_data_from_string(argv[1], aid, 1, 16);
 	if (rc < 0)
 		return(rc);
 	aid_len = rc;