Fix bug in path table size computation.

This commit is contained in:
Vreixo Formoso 2007-12-25 23:33:37 +01:00
parent d954957d83
commit 49344b3ca9

View File

@ -157,7 +157,7 @@ uint32_t calc_path_table_size(Ecma119Node *dir)
/* size of path table for this entry */
size = 8;
size += dir->iso_name ? strlen(dir->iso_name) : 1;
size += size + (size % 2);
size += (size % 2);
/* and recurse */
for (i = 0; i < dir->info.dir.nchildren; i++) {