Bound-check GetErr

This commit is contained in:
Dianne Skoll
2024-12-09 20:03:15 -05:00
parent d9796e72e5
commit 9f9ae77895
4 changed files with 20 additions and 4 deletions
+6
View File
@@ -255,3 +255,9 @@ EXTERN char *ErrMsg[]
#endif /* MK_GLOBALS */
;
#endif /* L_ERR_OVERRIDE */
EXTERN int NumErrs
#ifdef MK_GLOBALS
= sizeof(ErrMsg) / sizeof(ErrMsg[0])
#endif
;