]> jfr.im git - irc/unrealircd/unrealircd.git/commitdiff
bleh origin/komara
authorluke <redacted>
Mon, 23 Jun 2003 13:14:58 +0000 (13:14 +0000)
committerluke <redacted>
Mon, 23 Jun 2003 13:14:58 +0000 (13:14 +0000)
src/s_user.c

index f86b31a680503d280e60a18e7c11d945135ce5d6..e4e72bb41bab487cd000fe05fb3780fc43045868 100644 (file)
@@ -1983,7 +1983,7 @@ static int m_message(cptr, sptr, parc, parv, notice)
                                                  break;        /* ignore it :P */
                                        }
                                        pfixchan[len] = '\0';
-                                       strncat(pfixchan, p2, sizeof(pfixchan));
+                                       strncat(pfixchan, p2, sizeof(pfixchan) - strlen(pfixchan));
                                        nick = pfixchan;
                                }
                        }