httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruediger Pluem <rpl...@apache.org>
Subject [Fwd: Re: Input Filter reading Body]
Date Sat, 28 Oct 2006 10:02:34 GMT

On 10/20/2006 05:03 PM, Christian Verdelli wrote:
> 
> static int redirect_wmlInFilter (ap_filter_t* f, apr_bucket_brigade* 
> brigade,
> ap_input_mode_t mode, apr_read_type_e block, apr_off_t readbytes) {
> 
> apr_bucket* bucket ;
> apr_status_t ret ;
> 
> if ( ret = ap_get_brigade(f->next, brigade, mode, block, readbytes) ,
> ret == APR_SUCCESS )
> for ( bucket = APR_BRIGADE_FIRST(brigade) ;
> bucket != APR_BRIGADE_SENTINEL(brigade) ;
> bucket = APR_BUCKET_NEXT(bucket) )
> 
> char *data[bucket->length];
> int len;
> apr_bucket_read(bucket,&data,&len,1);
> ap_log_perror(APLOG_MARK, APLOG_NOTICE, NULL, f->c->pool,
> "(IN) %s %s: %d bytes - %s ", f->frec->name, t, bucket->length , data );

data is an array of *char so you are supplying a **char to ap_log_perror here and
not an *char as you intent to do, right?
Use

char *data instead of char *data[bucket->length]


Regards

RĂ¼diger




Mime
View raw message