r5406 jmb - /trunk/netsurf/utils/filename.c

netsurf at semichrome.net netsurf at semichrome.net
Tue Sep 23 10:14:40 BST 2008


Author: jmb
Date: Tue Sep 23 04:14:40 2008
New Revision: 5406

URL: http://source.netsurf-browser.org?rev=5406&view=rev
Log:
Fix array overrun.

Modified:
    trunk/netsurf/utils/filename.c

Modified: trunk/netsurf/utils/filename.c
URL: http://source.netsurf-browser.org/trunk/netsurf/utils/filename.c?rev=5406&r1=5405&r2=5406&view=diff
==============================================================================
--- trunk/netsurf/utils/filename.c (original)
+++ trunk/netsurf/utils/filename.c Tue Sep 23 04:14:40 2008
@@ -107,7 +107,7 @@
 
 	/* filename format is always '01/23/45/XX' */
 	strncpy(dir_prefix, filename, 9);
-	dir_prefix[9] = '\0';
+	dir_prefix[8] = '\0';
 	file = (filename[10] + filename[9] * 10 - START_PREFIX);
 
 	/* create the directory */




More information about the netsurf-commits mailing list