X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/ac408af6cba5a230c66186d4389e60766c3a74a4..62a2743ab7aef4888c53c7dbc1c46c28d19a95b2:/modules/m_who.c diff --git a/modules/m_who.c b/modules/m_who.c index 63fb2ed..769beea 100644 --- a/modules/m_who.c +++ b/modules/m_who.c @@ -21,7 +21,6 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: m_who.c 3350 2007-04-02 22:03:08Z jilles $ */ #include "stdinc.h" #include "common.h" @@ -442,7 +441,7 @@ append_format(char *buf, size_t bufsize, size_t *pos, const char *fmt, ...) max = *pos >= bufsize ? 0 : bufsize - *pos; va_start(ap, fmt); - result = rb_vsnprintf(buf + *pos, bufsize - *pos, fmt, ap); + result = rb_vsnprintf(buf + *pos, max, fmt, ap); va_end(ap); *pos += result; }