$OpenBSD: patch-gpasm_parse_c,v 1.2 2004/01/30 01:01:11 naddy Exp $
--- gpasm/parse.c.orig	2004-01-09 19:10:36.000000000 +1100
+++ gpasm/parse.c	2004-01-25 20:36:30.000000000 +1100
@@ -1402,7 +1402,7 @@ case 11:
 	      /* Outside a macro, just define the label. */
 	      switch (state.lst.line.linetype) {
 	      case sec:
-		strncpy(state.obj.new_sec_name, yyvsp[-1].s, 78);
+		strlcpy(state.obj.new_sec_name, yyvsp[-1].s, sizeof(state.obj.new_sec_name));
 		break;
 	      case set:
 		set_global(yyvsp[-1].s, yyvsp[0].i, TEMPORARY, gvt_constant);
