diff -Nru xsys-2.2.0/xsys.c xsys-2.2.0-patched/xsys.c --- xsys-2.2.0/xsys.c 2007-07-13 21:38:51.000000000 +0100 +++ xsys-2.2.0-patched/xsys.c 2009-07-11 21:23:14.000000000 +0100 @@ -509,7 +509,7 @@ static int netstream_cb(char *word[], char *word_eol[], void *userdata) { - char netstream[bsize], mag_r[3], mag_s[5]; + char netstream[bsize], mag_r[5], mag_s[5]; unsigned long long bytes_recv, bytes_sent, bytes_recv_p, bytes_sent_p; struct timespec ts = {1, 0}; @@ -719,7 +719,7 @@ flat_format_output("length", length, format); else format_output("length", length, format); - strncat(title, length, bsize); + strncat(title, length, bsize - 1); if ((action != 0) && (long)userdata) xchat_printf(ph, "You are %s", title);