$OpenBSD: patch-bin_megatron_asingle_c,v 1.1 2003/08/22 11:18:19 naddy Exp $
--- bin/megatron/asingle.c.orig	Mon Aug 18 13:40:09 2003
+++ bin/megatron/asingle.c	Mon Aug 18 13:42:54 2003
@@ -49,7 +49,7 @@
  */
 struct single_file_data {
     int			filed;
-    char		path[ MAXPATHLEN + 1];
+    char		path[MAXPATHLEN];
     struct ad_entry	entry[ ADEID_MAX ];
 } 		single;
 
@@ -76,7 +76,7 @@ int single_open( singlefile, flags, fh, 
 	    perror( singlefile );
 	    return( -1 );
 	}
-	strncpy( single.path, singlefile, MAXPATHLEN );
+	strncpy( single.path, singlefile, (MAXPATHLEN-1));
 #if DEBUG
 	fprintf( stderr, "opened %s for read\n", single.path );
 #endif /* DEBUG */
