19 lines
785 B
Plaintext
19 lines
785 B
Plaintext
|
$OpenBSD: patch-tla_libneon_ne_207_c,v 1.1.1.1 2004/06/10 07:50:43 xsa Exp $
|
||
|
--- tla/libneon/ne_207.c.orig 2003-12-06 20:35:28.000000000 +0100
|
||
|
+++ tla/libneon/ne_207.c 2004-06-09 23:27:35.000000000 +0200
|
||
|
@@ -320,12 +320,12 @@ int ne_simple_request(ne_session *sess,
|
||
|
if (ne_get_status(req)->code == 207) {
|
||
|
if (!ne_xml_valid(p)) {
|
||
|
/* The parse was invalid */
|
||
|
- ne_set_error(sess, ne_xml_get_error(p));
|
||
|
+ ne_set_error(sess, "%s", ne_xml_get_error(p));
|
||
|
ret = NE_ERROR;
|
||
|
} else if (ctx.is_error) {
|
||
|
/* If we've actually got any error information
|
||
|
* from the 207, then set that as the error */
|
||
|
- ne_set_error(sess, ctx.buf->data);
|
||
|
+ ne_set_error(sess, "%s", ctx.buf->data);
|
||
|
ret = NE_ERROR;
|
||
|
}
|
||
|
} else if (ne_get_status(req)->klass != 2) {
|