--- libjabber-0.1/jconn.c.orig 2007-01-19 09:26:38.000000000 -0500 +++ libjabber-0.1/jconn.c 2007-01-19 09:28:22.000000000 -0500 @@ -169,8 +169,11 @@ /* this is ugly, we can create the string here instead of jutil_header */ /* what do you think about it? -madcat */ t2 = strstr(t,"/>"); + if (t2 != NULL) + { *t2++ = '>'; *t2 = '\0'; + } jab_send_raw(j,""); jab_send_raw(j,t); xmlnode_free(x); --- libjabber-0.1/xstream.c.orig 2007-01-19 09:29:24.000000000 -0500 +++ libjabber-0.1/xstream.c 2007-01-19 09:34:32.000000000 -0500 @@ -210,9 +210,12 @@ spooler(s,"",xmlnode2str(x),s); head = spool_print(s); fixr = strstr(head,"/>"); + if (fixr != NULL) + { *fixr = '>'; ++fixr; *fixr = '\0'; + } return head; }