projects
/
cacao.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79d4abf
)
* utf_new_intern: Calculate count_utf_len correctly (off by 1).
author
twisti
<none@none>
Fri, 28 Oct 2005 11:29:52 +0000
(11:29 +0000)
committer
twisti
<none@none>
Fri, 28 Oct 2005 11:29:52 +0000
(11:29 +0000)
src/vm/utf8.c
patch
|
blob
|
history
diff --git
a/src/vm/utf8.c
b/src/vm/utf8.c
index de8535d536a895633af6d814f6687b92c1f76d32..1743a044fab1c85982bfa20d06136ae60a0bfa4b 100644
(file)
--- a/
src/vm/utf8.c
+++ b/
src/vm/utf8.c
@@
-30,7
+30,7
@@
Andreas Krall
Christian Thalinger
- $Id: utf8.c 3
496 2005-10-26 14:58:15
Z twisti $
+ $Id: utf8.c 3
512 2005-10-28 11:29:52
Z 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 */