diff --git a/src/syslogd.c b/src/syslogd.c index c5949a1..d053b3b 100644 --- a/src/syslogd.c +++ b/src/syslogd.c @@ -1868,7 +1868,7 @@ void logrotate(struct filed *f) /* bug (mostly harmless): can wrap around if file > 4gb */ if (S_ISREG(statf.st_mode) && statf.st_size > f->f_rotatesz) { if (f->f_rotatecount > 0) { /* always 0..999 */ - int len = strlen(f->f_un.f_fname) + 10 + 1; + int len = strlen(f->f_un.f_fname) + 10 + 5; int i; char oldFile[len]; char newFile[len]; @@ -2783,7 +2783,7 @@ void cfline(char *line, struct filed *f) struct addrinfo hints, *ai; #endif char buf[MAXLINE]; - char xbuf[200]; + char xbuf[MAXLINE + 24]; char *p, *q, *bp; int ignorepri = 0; int singlpri = 0;