From: Ilia Alshanetsky Date: Wed, 3 Jan 2007 04:05:36 +0000 (+0000) Subject: Use proper length X-Git-Tag: RELEASE_1_0_0RC1~423 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b597606cfb766d240fde4b5824c813b8f21a87df;p=php Use proper length --- diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c index b8f14a8c61..115ca9c3d2 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); } }