From 15650f16b910e1d7327daa11bcaf34a5629f5714 Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 30 Apr 2014 21:43:50 +0100 Subject: [PATCH] Revert "Fixed a potential buffer overflow in xmpp_stanza_to_text when the stanza length was greater than the default buffer size of 1024. Tested on Windows only." This reverts commit 4b194b98cfa25b6f1ce617b3f964657f53dd8414. --- src/stanza.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stanza.c b/src/stanza.c index 3ffa825..4ecc558 100644 --- a/src/stanza.c +++ b/src/stanza.c @@ -398,7 +398,7 @@ int xmpp_stanza_to_text(xmpp_stanza_t *stanza, return XMPP_EMEM; } - ret = _render_stanza_recursive(stanza, buffer, length - 1); + ret = _render_stanza_recursive(stanza, buffer, length); if (ret < 0) return ret; if (ret > length - 1) {