*** mod_dumpio.c.bak 2012-11-20 17:56:07.000000000 +0100 --- modules/debugging/mod_dumpio.c 2012-11-21 11:21:59.000000000 +0100 *************** *** 68,75 **** --- 68,77 ---- char xlatebuf[dumpio_MAX_STRING_LEN + 1]; #endif const char *buf; + const char *buffTMP; apr_size_t nbytes; apr_status_t rv = apr_bucket_read(b, &buf, &nbytes, APR_BLOCK_READ); + buffTMP = buf; if (rv == APR_SUCCESS) { *************** *** 97,106 **** * within ap_log_error, and introduce new vformatter %-escapes * for escaping text, and for binary text (fixed len strings). */ ! ap_log_cerror(APLOG_MARK, APLOG_TRACE7, 0, c, "mod_dumpio: %s (%s-%s): %.*s", f->frec->name, (APR_BUCKET_IS_METADATA(b)) ? "metadata" : "data", ! b->type->name, (int)logbytes, buf); #endif } } else { --- 99,109 ---- * within ap_log_error, and introduce new vformatter %-escapes * for escaping text, and for binary text (fixed len strings). */ ! ap_log_cerror(APLOG_MARK, APLOG_TRACE7, 0, c, "mod_dumpio: %s (%s-%s): %.*s", f->frec->name, (APR_BUCKET_IS_METADATA(b)) ? "metadata" : "data", ! b->type->name, (int)logbytes, buffTMP); ! buffTMP = buffTMP + (int)logbytes; #endif } } else {