$NetBSD: patch-ae,v 1.3 2005/02/15 22:45:54 seb Exp $ --- src/queue.c.orig 2003-10-07 12:04:47.000000000 +0000 +++ src/queue.c @@ -32,6 +32,11 @@ static char qfile[128]; static char buf[16384]; static int i, fd; +/* For HP-UX */ +#ifndef EX_CONFIG +# define EX_CONFIG 78 +#endif + #ifndef CONFIG # define CONFIG "/etc/sympa.conf" #endif @@ -116,7 +121,7 @@ main(int argn, char **argv) exit(EX_NOPERM); } umask(027); - sprintf(qfile, "T.%s.%ld.%d", listname, time(NULL), getpid()); + snprintf(qfile, sizeof(qfile), "T.%s.%ld.%d", listname, time(NULL), getpid()); fd = open(qfile, O_CREAT|O_WRONLY, 0600); if (fd == -1){ char* buffer=(char*)malloc(strlen(argv[0])+strlen(queuedir)+80);