changeset 30419:9789e8e7d834

jabber: Document this not being an off-by-one...
author Paul Aurich <paul@darkrain42.org>
date Thu, 19 Aug 2010 19:55:31 +0000
parents 8b94ce420e01
children 4ed390927f9d cb16239deeec 1884f1f2013b 581a070c3737
files libpurple/protocols/jabber/auth_cyrus.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/auth_cyrus.c	Sun Aug 15 19:49:48 2010 +0000
+++ b/libpurple/protocols/jabber/auth_cyrus.c	Thu Aug 19 19:55:31 2010 +0000
@@ -103,6 +103,7 @@
 		return SASL_BADPARAM;
 
 	len = strlen(pw);
+	/* Not an off-by-one because sasl_secret_t defines char data[1] */
 	x = (sasl_secret_t *) realloc(x, sizeof(sasl_secret_t) + len);
 
 	if (!x)