openbsd-ports/devel/tla/patches/patch-tla_libneon_ne_207_c
xsa 3eb1bd12b2 Initial import of tla-1.2
tla is an Arch CLI written in C.

Arch is a revision control system, i.e. a system that makes it easy to
track changes to computer files, mostly the source code to complex
software systems.

It has the following features that set it apart from other revision
control systems, such as CVS, Subversion or Bitkeeper:

- distributed repositories
- advanced merging capabilities
- low barrier of entry : everybody can easily publish their changes to
  others projects. Repositories can be hosted on HTTP, FTP SFTP and
  WebDav server.
- renames handled
- archive signing and integrity checking : a facility by which the
  integrity of a publicly accessible archive can be verified.

Submitted and maintained by Laurent Cheylus <foxy ta free tod fr>
2004-06-10 07:50:43 +00:00

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) {