From c0b00f48e147369c073d9454dfe0ad1e4b65c6ec Mon Sep 17 00:00:00 2001 From: Olaf Seibert Date: Tue, 4 Jun 2024 19:21:35 +0200 Subject: [PATCH] Avoid super-inefficient use of strlen(). --- I650/i650_sys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/I650/i650_sys.c b/I650/i650_sys.c index cd2f67e8..475371bd 100644 --- a/I650/i650_sys.c +++ b/I650/i650_sys.c @@ -843,7 +843,7 @@ void deck_print_echo(uint16 * DeckImage, int nCards, int bPrint, int bEcho) sim_trim_endspc(line); // echo on console (add CR LF) if (bEcho) { - for (i=0;i<(int)strlen(line);i++) sim_putchar(line[i]); + for (i=0;line[i];i++) sim_putchar(line[i]); sim_putchar(13);sim_putchar(10); } // printout will be directed to file attached to CDP0 unit, if any