9cd71b216d
Oak is a program that can be used to monitor syslogs from a collection of servers and notify operators when problem conditions arise. In addition to providing immediate notification of critical problems, oak will also batch less critical problems into summary messages that can be sent less often and via any medium. Packaged by jdwhite@jdwhite.org.
22 lines
620 B
Text
22 lines
620 B
Text
$NetBSD: patch-ac,v 1.1.1.1 2007/11/03 14:28:21 rillig Exp $
|
|
|
|
--- global.c 2005-02-27 12:54:53.000000000 -0600
|
|
+++ global.c 2006-02-04 14:38:45.000000000 -0600
|
|
@@ -48,7 +50,7 @@
|
|
|
|
void oak_global_set_logfile(oak_global *g, char *filename)
|
|
{
|
|
- strcpy(g->logfile, filename);
|
|
+ strncpy(g->logfile, filename, sizeof(g->logfile)-1);
|
|
}
|
|
|
|
oak_queuelist *oak_global_get_queuelist(oak_global *g)
|
|
@@ -113,7 +115,7 @@
|
|
|
|
void oak_global_set_replacestr(oak_global *g, char *in)
|
|
{
|
|
- strcpy(g->replacestr, in);
|
|
+ strncpy(g->replacestr, in, sizeof(g->replacestr)-1);
|
|
}
|
|
|
|
int oak_global_host_is_ok(oak_global *g, char *host)
|