ok?

Index: history.c
===================================================================
RCS file: /cvs/src/bin/ksh/history.c,v
retrieving revision 1.52
diff -u -p -r1.52 history.c
--- history.c   1 Nov 2015 15:38:53 -0000       1.52
+++ history.c   1 Nov 2015 15:44:02 -0000
@@ -507,7 +507,7 @@ sethistsize(int n)
                        cursize = n;
                }
 
-               history = (char **)aresize(history, n*sizeof(char *), APERM);
+               history = areallocarray(history, n, sizeof(char *), APERM);
 
                histsize = n;
                histptr = history + cursize;

Reply via email to