From f922e045d2d9f919b43577176ff530180a0f7c7e Mon Sep 17 00:00:00 2001 From: David Griffith Date: Thu, 25 May 2023 19:41:55 -0700 Subject: [PATCH] Backed off snprintf() to sprintf() because Turbo C doesn't do the former. There is no way for this vary the inputs to sprintf() here. --- src/common/fastmem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/fastmem.c b/src/common/fastmem.c index fbc5cb4..2dac9de 100644 --- a/src/common/fastmem.c +++ b/src/common/fastmem.c @@ -289,7 +289,7 @@ void init_memory(void) zword addr; unsigned n; int i, j; - char errorstring[81]; + char errorstring[26]; /* Don't reuse this. */ #ifdef TOPS20 zword checksum = 0; @@ -461,7 +461,7 @@ void init_memory(void) /* Ensure undo slots don't exceed maximum */ if (f_setup.undo_slots > MAX_UNDO_SLOTS) { - snprintf(errorstring, 80, "Maxmimum undo slots is %d", MAX_UNDO_SLOTS); + sprintf(errorstring, "Maximum undo slots is %d", MAX_UNDO_SLOTS); os_fatal(errorstring); } -- 2.34.1