[project @ 2006-01-02 22:15:28 by rjw]

Fix claiming resulting in incorrect filenames.

svn path=/import/netsurf/; revision=1965
This commit is contained in:
Richard Wilson 2006-01-02 22:15:28 +00:00
parent f84dedbe4d
commit f6f12a3116

View File

@ -88,7 +88,7 @@ bool ro_filename_claim(const char *filename) {
struct directory *dir;
/* filename format is always '01.23.45.XX' */
strncpy(dir_prefix, filename, 8);
strncpy(dir_prefix, filename, 9);
dir_prefix[9] = '\0';
file = (filename[10] + filename[9] * 10 - START_PREFIX);