From: Ilia Alshanetsky Date: Wed, 3 Jan 2007 04:05:12 +0000 (+0000) Subject: Use proper length X-Git-Tag: php-5.2.1RC2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9046eaa2600941e25fc4e00c4722b92be263fc01;p=php Use proper length --- diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c index e9ecc4d2eb..39fdea2f92 100644 --- a/ext/fdf/fdf.c +++ b/ext/fdf/fdf.c @@ -1448,7 +1448,7 @@ SAPI_POST_HANDLER_FUNC(fdf_post_handler) if(lastfieldname) efree(lastfieldname); lastfieldname = estrdup(name); - if (sapi_module.input_filter(PARSE_POST, name, &value, value_len - 1, &new_val_len TSRMLS_CC)) { + if (sapi_module.input_filter(PARSE_POST, name, &value, nBytes, &new_val_len TSRMLS_CC)) { php_register_variable_safe(name, value, new_val_len, array_ptr TSRMLS_CC); } }