$OpenBSD: patch-libgfortran_io_transfer_c,v 1.3 2006/01/09 15:31:47 espie Exp $
--- libgfortran/io/transfer.c.orig	Tue Dec 20 07:06:28 2005
+++ libgfortran/io/transfer.c	Mon Jan  9 13:36:29 2006
@@ -1739,7 +1739,7 @@ st_set_nml_var (void * var_addr, char * 
   nml->mem_pos = var_addr;
 
   nml->var_name = (char*) get_mem (strlen (var_name) + 1);
-  strcpy (nml->var_name, var_name);
+  strlcpy (nml->var_name, var_name, strlen (var_name) + 1);
 
   nml->len = (int) len;
   nml->string_length = (index_type) string_length;
