openbsd-ports/devel/tla/patches/patch-tla_libneon_ne_locks_c
2010-05-19 23:29:14 +00:00

22 lines
854 B
Plaintext

$OpenBSD: patch-tla_libneon_ne_locks_c,v 1.2 2010/05/19 23:29:14 espie Exp $
--- tla/libneon/ne_locks.c.orig Sat Dec 6 20:35:28 2003
+++ tla/libneon/ne_locks.c Wed May 19 19:28:47 2010
@@ -734,7 +734,7 @@ int ne_lock(ne_session *sess, struct ne_lock *lock)
}
else if (parse_failed) {
ret = NE_ERROR;
- ne_set_error(sess, ne_xml_get_error(parser));
+ ne_set_error(sess, "%s", ne_xml_get_error(parser));
}
else if (ne_get_status(req)->code == 207) {
ret = NE_ERROR;
@@ -802,7 +802,7 @@ int ne_lock_refresh(ne_session *sess, struct ne_lock *
if (ret == NE_OK && ne_get_status(req)->klass == 2) {
if (parse_failed) {
ret = NE_ERROR;
- ne_set_error(sess, ne_xml_get_error(parser));
+ ne_set_error(sess, "%s", ne_xml_get_error(parser));
}
else if (ne_get_status(req)->code == 207) {
ret = NE_ERROR;