aboutsummaryrefslogtreecommitdiffstats
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/log.c b/src/log.c
index 2f41951..c117779 100644
--- a/src/log.c
+++ b/src/log.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.11 2008/03/07 13:16:02 james
+ * *** empty log message ***
+ *
* Revision 1.10 2008/03/07 12:37:04 james
* *** empty log message ***
*
@@ -119,7 +122,7 @@ file_log_new (char *fn, int rotate)
dc = 0;
}
- l = malloc (sizeof (File_Log));
+ l = xmalloc (sizeof (File_Log));
l->log = flog_log;
l->close = flog_close;
@@ -168,7 +171,7 @@ log_f (Log * log, char *fmt, ...)
else /* glibc 2.0 */
size *= 2; /* twice the old size */
- buf = realloc (buf, size);
+ buf = xrealloc (buf, size);
if (!buf)
return;