$OpenBSD: patch-libgfortran_io_read_c,v 1.1 2005/06/16 18:04:41 espie Exp $
--- libgfortran/io/read.c.orig	Thu Jun 16 19:36:47 2005
+++ libgfortran/io/read.c	Thu Jun 16 19:38:52 2005
@@ -704,7 +704,7 @@ read_f (fnode * f, char *dest, int lengt
       digits++;
     }
   *(p++) = 'e';
-  sprintf (p, "%d", exponent);
+  snprintf (p, (p-buffer)+i, "%d", exponent);
 
   /* Do the actual conversion.  */
   convert_real (dest, buffer, length);
