summaryrefslogtreecommitdiff
path: root/sysutils/oak/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/oak/patches/patch-ac')
-rw-r--r--sysutils/oak/patches/patch-ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/oak/patches/patch-ac b/sysutils/oak/patches/patch-ac
new file mode 100644
index 00000000000..a52c4899f9a
--- /dev/null
+++ b/sysutils/oak/patches/patch-ac
@@ -0,0 +1,22 @@
+$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)