]> granicus.if.org Git - php/commitdiff
Revert to sizeof()
authorMarcus Boerger <helly@php.net>
Fri, 23 May 2003 18:37:36 +0000 (18:37 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 23 May 2003 18:37:36 +0000 (18:37 +0000)
Zend/zend_API.h

index 4667bac6663d18a0d918681036d90389e4fbc103..15cf3108a5d6e1ed97006c27b2922fe1f6a1c31c 100644 (file)
@@ -94,7 +94,7 @@ BEGIN_EXTERN_C()
 #define INIT_OVERLOADED_CLASS_ENTRY(class_container, class_name, functions, handle_fcall, handle_propget, handle_propset) \
        {                                                                                                                       \
                class_container.name = strdup(class_name);                              \
-               class_container.name_length = strlen(class_name);               \
+               class_container.name_length = sizeof(class_name) - 1;   \
                class_container.builtin_functions = functions;                  \
                class_container.constructor = NULL;                                             \
                class_container.destructor = NULL;                                              \