Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/auth_cyrus.c @ 30852: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 | c8cf189bf6db |
children | 1cdae196aac8 |
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)