* utf_new_intern: Calculate count_utf_len correctly (off by 1).
authortwisti <none@none>
Fri, 28 Oct 2005 11:29:52 +0000 (11:29 +0000)
committertwisti <none@none>
Fri, 28 Oct 2005 11:29:52 +0000 (11:29 +0000)
src/vm/utf8.c

index de8535d536a895633af6d814f6687b92c1f76d32..1743a044fab1c85982bfa20d06136ae60a0bfa4b 100644 (file)
@@ -30,7 +30,7 @@
             Andreas Krall
             Christian Thalinger
 
-   $Id: utf8.c 3496 2005-10-26 14:58:15Z twisti $
+   $Id: utf8.c 3512 2005-10-28 11:29:52Z twisti $
 
 */
 
@@ -479,7 +479,7 @@ utf *utf_new_intern(const char *text, u2 length)
 
 #ifdef STATISTICS
        if (opt_stat)
-               count_utf_len += sizeof(utf) + length;
+               count_utf_len += sizeof(utf) + length + 1;
 #endif
 
        /* location in hashtable found, create new utf element */