-/* $OpenBSD: newsyslog.c,v 1.6 1996/09/02 18:47:16 tholo Exp $ */
+/* $OpenBSD: newsyslog.c,v 1.7 1996/12/07 08:00:45 deraadt Exp $ */
/*
* This file contains changes from the Open Software Foundation.
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.6 1996/09/02 18:47:16 tholo Exp $";
+static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.7 1996/12/07 08:00:45 deraadt Exp $";
#endif /* not lint */
#ifndef CONF
int syslog_pid; /* read in from /etc/syslog.pid */
#define MIN_PID 3
#define MAX_PID 65534
-char hostname[64]; /* hostname */
+char hostname[MAXHOSTNAMELEN]; /* hostname */
char *daytime; /* timenow in human readable form */
int owner_uid;
int group_gid;
{
- char file1[128], file2[128];
- char zfile1[128], zfile2[128];
+ char file1[MAXPATHLEN], file2[MAXPATHLEN];
+ char zfile1[MAXPATHLEN], zfile2[MAXPATHLEN];
int fd;
struct stat st;
int days = numdays;
char *log;
{
int pid;
- char tmp[128];
+ char tmp[MAXPATHLEN];
pid = fork();
(void) sprintf(tmp,"%s.0",log);
char *file;
{
struct stat sb;
- char tmp[MAXPATHLEN+3];
+ char tmp[MAXPATHLEN];
(void) strcpy(tmp,file);
if (stat(strcat(tmp,".0"),&sb) < 0)