1fded4
diff -up ksh-20120801/src/lib/libast/misc/stk.c.orig ksh-20120801/src/lib/libast/misc/stk.c
1fded4
--- ksh-20120801/src/lib/libast/misc/stk.c.orig	2022-01-31 16:06:11.923069379 -0300
1fded4
+++ ksh-20120801/src/lib/libast/misc/stk.c	2022-01-31 16:06:54.896802455 -0300
1fded4
@@ -76,7 +76,7 @@ struct frame
1fded4
 struct stk
1fded4
 {
1fded4
 	_stk_overflow_	stkoverflow;	/* called when malloc fails */
1fded4
-	short		stkref;	/* reference count; */
1fded4
+	int		stkref;	        /* reference count; */
1fded4
 	short		stkflags;	/* stack attributes */
1fded4
 	char		*stkbase;	/* beginning of current stack frame */
1fded4
 	char		*stkend;	/* end of current stack frame */