]> granicus.if.org Git - php/commitdiff
Parse-fix
authorJeroen van Wolffelaar <jeroen@php.net>
Wed, 26 Sep 2001 09:00:30 +0000 (09:00 +0000)
committerJeroen van Wolffelaar <jeroen@php.net>
Wed, 26 Sep 2001 09:00:30 +0000 (09:00 +0000)
ext/hyperwave/hw.c

index f9a3e94de5ad1ae498d2e7c5fa378a4e1a297790..b117b947063a5fa49a3e7ad7a4b3eb899a939f2b 100644 (file)
@@ -2851,7 +2851,7 @@ PHP_FUNCTION(hw_new_document)
        }
        memcpy(doc->data, Z_STRVAL_P(arg2), Z_LVAL_P(arg3));
        ptr = doc->data;
-       Z_LVAL_P(ptr[arg3)] = '\0';
+       ptr[Z_LVAL_P(arg3)] = '\0';
        doc->attributes = strdup(Z_STRVAL_P(arg1));
        doc->bodytag = NULL;
        doc->size = Z_LVAL_P(arg3);