changeset 212:43b57865fdb5

fc-simtool spn command: fix ancient bug
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 07 Mar 2021 06:46:21 +0000
parents 31cd62f91522
children 50bdc48e7487
files simtool/hlread.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/simtool/hlread.c	Sun Mar 07 06:41:40 2021 +0000
+++ b/simtool/hlread.c	Sun Mar 07 06:46:21 2021 +0000
@@ -141,7 +141,7 @@
 	fputs("SPN: ", outf);
 	rc = validate_alpha_field(sim_resp_data + 1, 16, &textlen);
 	if (rc >= 0)
-		print_alpha_field(sim_resp_data, textlen, outf);
+		print_alpha_field(sim_resp_data + 1, textlen, outf);
 	else
 		fputs("malformed alpha field", outf);
 	putc('\n', outf);