1
0
mirror of https://github.com/simh/simh.git synced 2026-01-11 23:52:58 +00:00

I650: Avoid super-inefficient use of strlen().

This commit is contained in:
Olaf Seibert 2024-07-08 09:39:15 -10:00 committed by Mark Pizzolato
parent 1260113ab9
commit 8ae67882b4

View File

@ -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