$OpenBSD: patch-gplink_cod_c,v 1.2 2004/01/30 01:01:11 naddy Exp $
--- gplink/cod.c.orig	2004-01-17 13:33:51.000000000 +1100
+++ gplink/cod.c	2004-01-25 20:36:31.000000000 +1100
@@ -117,8 +117,8 @@ cod_init(void)
 {
 
   if (state.codfile != named) {
-    strcpy(state.codfilename, state.basefilename);
-    strcat(state.codfilename, ".cod");  
+    strlcpy(state.codfilename, state.basefilename, sizeof(state.codfilename));
+    strlcat(state.codfilename, ".cod", sizeof(state.codfilename));
   }
 
   if (state.codfile == suppress) {
