search for: loglist

Displaying 2 results from an estimated 2 matches for "loglist".

Did you mean: loclist
2001 Sep 27
2
Icecast2 in xiph CVS, PATCH!
...=============================== ======= RCS file: /usr/local/cvsroot/log/log.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 log.c --- log.c 2001/09/10 02:32:03 1.1.1.1 +++ log.c 2001/09/27 06:16:00 @@ -161,7 +161,8 @@ snprintf(pre, 256, "%s %s", prior[priority-1], cat); - fprintf(loglist[log_id].logfile, "%s %s %s\n", tyme, pre, line); + fprintf(loglist[log_id].logfile, "%s %s %s\n", tyme, pre, line); + log_flush(log_id); va_end(ap); } @@ -178,7 +179,7 @@ fprintf(loglist[log_id].logfile, "%s\n", line); va_end(ap); - fflush(loglist[log_id]...
2011 Apr 29
4
You don't check for malloc failure
...24:11 2011 @@ -368,6 +368,9 @@ entry = calloc (1, sizeof (log_entry_t)); entry->line = malloc (LOG_MAXLINELEN); + if (entry->line == NULL) { + abort(); + } len = snprintf (entry->line, LOG_MAXLINELEN, "%s%s\n", pre, line); entry->len = len; loglist [log_id].total += len; @@ -402,6 +405,9 @@ _lock_logger (); remain = loglist [log_id].total + 1; *_contents = malloc (remain); + if (*_contents == NULL) { + abort(); + } **_contents= '\0'; *_len = loglist [log_id].total; diff -ru icecast-2.3.2-ORIG/src/slave...