From 49344b3ca92a401043d3f28529868403714b2cc8 Mon Sep 17 00:00:00 2001 From: Vreixo Formoso Date: Tue, 25 Dec 2007 23:33:37 +0100 Subject: [PATCH] Fix bug in path table size computation. --- src/ecma119.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ecma119.c b/src/ecma119.c index 47ba4d8..1e88c18 100644 --- a/src/ecma119.c +++ b/src/ecma119.c @@ -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++) {