From 01793c705f815da25569b5608a044ab20ff90179 Mon Sep 17 00:00:00 2001 From: Gustavo Felisberto Date: Fri, 9 Apr 2004 15:14:58 +0000 Subject: Adding patch for xml-stream error bug --- net-im/jabberd/files/xml-stream-patch-00 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 net-im/jabberd/files/xml-stream-patch-00 (limited to 'net-im/jabberd/files') diff --git a/net-im/jabberd/files/xml-stream-patch-00 b/net-im/jabberd/files/xml-stream-patch-00 new file mode 100644 index 000000000000..9edb0d9a8073 --- /dev/null +++ b/net-im/jabberd/files/xml-stream-patch-00 @@ -0,0 +1,17 @@ +--- error.c.old 2004-03-20 14:39:57.985636816 +0100 ++++ error.c 2004-03-20 14:40:42.025941672 +0100 +@@ -71,7 +71,13 @@ + len += sprintf(&(buf->data[len]), "<%s xmlns='" uri_STREAM_ERR "'/>%s", _stream_errors[err], text); + + if(s->state < state_STREAM) +- len += sprintf(&(buf->data[len]), ""); ++ { ++ char *streamend= ""; ++ printf ("About to write %d bytes\n", strlen (streamend)); ++ // len += sprintf(&(buf->data[len]), ""); ++ memcpy (&(buf->data[len]), streamend, strlen (streamend)); ++ len += strlen (streamend); ++ } + + assert(len == buf->len); + -- cgit v1.2.3-65-gdbad