projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7d36def
)
We need to use strlen on hash keys.
author
Derick Rethans
<github@derickrethans.nl>
Thu, 7 Jul 2011 13:05:21 +0000 (14:05 +0100)
committer
Derick Rethans
<github@derickrethans.nl>
Thu, 7 Jul 2011 13:05:21 +0000 (14:05 +0100)
twig.c
patch
|
blob
|
history
diff --git
a/twig.c
b/twig.c
index
e93e5f5
..
8b7b84b
100644
(file)
--- a/
twig.c
+++ b/
twig.c
@@
-657,7
+657,7
@@
PHP_FUNCTION(twig_template_get_attributes)
zval *tmp_class, *tmp_properties, *tmp_item, *tmp_object_item = NULL;
tmp_class = TWIG_GET_ARRAY_ELEMENT(tmp_self_cache, class_name, strlen(class_name));
- tmp_properties = TWIG_GET_ARRAY_ELEMENT(tmp_class, "properties", sizeof("properties"));
+ tmp_properties = TWIG_GET_ARRAY_ELEMENT(tmp_class, "properties", strlen("properties"));
tmp_item = TWIG_GET_ARRAY_ELEMENT_ZVAL(tmp_properties, item);
if (tmp_item) {