$OpenBSD: patch-gpasm_cod_c,v 1.1.1.1 2003/11/03 01:02:34 naddy Exp $ --- gpasm/cod.c.orig 2003-10-14 20:52:05.000000000 +1000 +++ gpasm/cod.c 2003-10-14 20:52:59.000000000 +1000 @@ -75,8 +75,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) {