--- freem/src/symtab_bltin.c 2025/04/10 01:24:39 1.10 +++ freem/src/symtab_bltin.c 2025/04/13 04:22:43 1.11 @@ -1,5 +1,5 @@ /* - * $Id: symtab_bltin.c,v 1.10 2025/04/10 01:24:39 snw Exp $ + * $Id: symtab_bltin.c,v 1.11 2025/04/13 04:22:43 snw Exp $ * FreeM local system table and user-defined special variable table * * @@ -24,6 +24,9 @@ * along with FreeM. If not, see . * * $Log: symtab_bltin.c,v $ + * Revision 1.11 2025/04/13 04:22:43 snw + * Fix snprintf calls + * * Revision 1.10 2025/04/10 01:24:39 snw * Remove C++ style comments * @@ -391,7 +394,7 @@ void symtab_bltin (short action, char *k stcnv_m2c (tt_with); stcnv_m2c (tt_key); - snprintf (key, 100, "%s%s\201\201", tt_with, tt_key); + sprintf (key, "%s%s\201\201", tt_with, tt_key); no_with: @@ -1917,7 +1920,7 @@ zinvend: char esbuf[256]; - snprintf (esbuf, 255, "%d\201", estack); + snprintf (esbuf, sizeof (esbuf) - 1, "%d\201", estack); j = stcpy (newptr, esbuf);