comparison src/http/modules/ngx_http_xslt_filter_module.c @ 2999:5aa29f3d8832

fix libxml2 error message
author Igor Sysoev <igor@sysoev.ru>
date Fri, 24 Jul 2009 13:32:41 +0000
parents 097c1242995b
children 204ea173234f
comparison
equal deleted inserted replaced
2998:fa8503fd3647 2999:5aa29f3d8832
718 va_end(args); 718 va_end(args);
719 719
720 while (--n && (buf[n] == CR || buf[n] == LF)) { /* void */ } 720 while (--n && (buf[n] == CR || buf[n] == LF)) { /* void */ }
721 721
722 ngx_log_error(NGX_LOG_ERR, ctx->request->connection->log, 0, 722 ngx_log_error(NGX_LOG_ERR, ctx->request->connection->log, 0,
723 "libxml2 error: \"%*s\"", n, buf); 723 "libxml2 error: \"%*s\"", n + 1, buf);
724 } 724 }
725 725
726 726
727 static ngx_buf_t * 727 static ngx_buf_t *
728 ngx_http_xslt_apply_stylesheet(ngx_http_request_t *r, 728 ngx_http_xslt_apply_stylesheet(ngx_http_request_t *r,