$OpenBSD: patch-libgfortran_io_read_c,v 1.2 2005/10/20 23:28:02 espie Exp $
--- libgfortran/io/read.c.orig	Sat Sep  3 21:11:57 2005
+++ libgfortran/io/read.c	Tue Oct  4 02:01:18 2005
@@ -766,7 +766,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);
