Ignore:
Timestamp:
Nov 6, 2007, 9:23:18 PM (12 years ago)
Author:
Bruno Cornec
Message:

Update mindi-busybox to 1.7.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.5/mindi-busybox/sysklogd/logger.c

    r1765 r1772  
    108108    if (!argc) {
    109109#define strbuf bb_common_bufsiz1
    110         while (fgets(strbuf, BUFSIZ, stdin)) {
     110        while (fgets(strbuf, COMMON_BUFSIZE, stdin)) {
    111111            if (strbuf[0]
    112112             && NOT_LONE_CHAR(strbuf, '\n')
     
    118118    } else {
    119119        char *message = NULL;
    120         int len = 1; /* for NUL */
     120        int len = 0;
    121121        int pos = 0;
    122122        do {
    123123            len += strlen(*argv) + 1;
    124             message = xrealloc(message, len);
     124            message = xrealloc(message, len + 1);
    125125            sprintf(message + pos, " %s", *argv),
    126126            pos = len;
Note: See TracChangeset for help on using the changeset viewer.