From be42afab1c325fae5c3c270876a3447220adcca5 Mon Sep 17 00:00:00 2001 From: james <> Date: Fri, 7 Mar 2008 13:16:02 +0000 Subject: *** empty log message *** --- src/history.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/history.c') diff --git a/src/history.c b/src/history.c index 6ba2719..d80a1b6 100644 --- a/src/history.c +++ b/src/history.c @@ -10,6 +10,9 @@ static char rcsid[] = "$Id$"; /* * $Log$ + * Revision 1.7 2008/03/07 13:16:02 james + * *** empty log message *** + * * Revision 1.6 2008/03/07 12:37:04 james * *** empty log message *** * @@ -37,8 +40,8 @@ history_new (int n) { History *ret; - ret = (History *) malloc (sizeof (History)); - ret->lines = malloc (n * sizeof (History_ent)); + ret = (History *) xmalloc (sizeof (History)); + ret->lines = xmalloc (n * sizeof (History_ent)); memset (ret->lines, 0, n * sizeof (History_ent)); ret->wptr = 0; -- cgit v1.2.3