]> granicus.if.org Git - php/commitdiff
Fixed extra byte allocation for TRUE/FALSE/ZEND_THREAD_SAFE/NULL constants.
authorIlia Alshanetsky <iliaa@php.net>
Thu, 11 Dec 2003 23:50:13 +0000 (23:50 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 11 Dec 2003 23:50:13 +0000 (23:50 +0000)
Zend/zend.h

index f63ab21a2a266dede49585abba27608396f9738b..69d87cdf8453485b902087bd2ee9d967b869cd42 100644 (file)
@@ -389,7 +389,7 @@ typedef int (*zend_write_func_t)(const char *str, uint str_length);
 #define MAX(a, b)  (((a)>(b))?(a):(b))
 #define MIN(a, b)  (((a)<(b))?(a):(b))
 #define ZEND_STRL(str)         (str), (sizeof(str)-1)
-#define ZEND_STRS(str)         (str), (sizeof(str))
+#define ZEND_STRS(str)         (str), (sizeof(str)-1)
 #define ZEND_NORMALIZE_BOOL(n)                 \
        ((n) ? (((n)>0) ? 1 : -1) : 0)
 #define ZEND_TRUTH(x)          ((x) ? 1 : 0)