diff options
author | Gustavo Felisberto <humpback@gentoo.org> | 2004-04-09 15:14:58 +0000 |
---|---|---|
committer | Gustavo Felisberto <humpback@gentoo.org> | 2004-04-09 15:14:58 +0000 |
commit | 01793c705f815da25569b5608a044ab20ff90179 (patch) | |
tree | 5c6a4c3026258aee7c6d6d2656eea69a990e27a2 /net-im/jabberd/files | |
parent | add missing keywords (Manifest recommit) (diff) | |
download | gentoo-2-01793c705f815da25569b5608a044ab20ff90179.tar.gz gentoo-2-01793c705f815da25569b5608a044ab20ff90179.tar.bz2 gentoo-2-01793c705f815da25569b5608a044ab20ff90179.zip |
Adding patch for xml-stream error bug
Diffstat (limited to 'net-im/jabberd/files')
-rw-r--r-- | net-im/jabberd/files/xml-stream-patch-00 | 17 |
1 files changed, 17 insertions, 0 deletions
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]), "<stream:error xmlns:stream='" uri_STREAMS "'><%s xmlns='" uri_STREAM_ERR "'/><text xmlns='" uri_STREAM_ERR "'>%s</text></stream:error>", _stream_errors[err], text); + + if(s->state < state_STREAM) +- len += sprintf(&(buf->data[len]), "</stream:stream>"); ++ { ++ char *streamend= "</stream:stream>"; ++ printf ("About to write %d bytes\n", strlen (streamend)); ++ // len += sprintf(&(buf->data[len]), "</stream:stream>"); ++ memcpy (&(buf->data[len]), streamend, strlen (streamend)); ++ len += strlen (streamend); ++ } + + assert(len == buf->len); + |