diff options
| author | 2004-04-14 19:07:20 +0000 | |
|---|---|---|
| committer | 2004-04-14 19:07:20 +0000 | |
| commit | 5232506d5eade7ab98ff39ee98577b04b257bbb2 (patch) | |
| tree | 90b5d8e2ec185719f737983e956db47ceab8efa3 /src/inspircd.cpp | |
| parent | More fixes to connection buffer handling (diff) | |
| download | inspircd++-5232506d5eade7ab98ff39ee98577b04b257bbb2.tar.gz inspircd++-5232506d5eade7ab98ff39ee98577b04b257bbb2.tar.bz2 inspircd++-5232506d5eade7ab98ff39ee98577b04b257bbb2.zip | |
Buffering fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@580 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
| -rw-r--r-- | src/inspircd.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index b43734073..e11456b48 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -7082,14 +7082,14 @@ int InspIRCd(void) for (int x = 0; x != UDPportCount; x++) { - string_list msgs; + std::deque<std::string> msgs; msgs.clear(); if (me[x]->RecvPacket(msgs, udp_host)) { for (int ctr = 0; ctr < msgs.size(); ctr++) { char udp_msg[MAXBUF]; - strncpy(udp_msg,MAXBUF,msgs[ctr].c_str()); + strncpy(udp_msg,msgs[ctr].c_str(),MAXBUF); if (strlen(udp_msg)<1) { log(DEBUG,"Invalid string from %s [route%d]",udp_host,x); @@ -7101,7 +7101,6 @@ int InspIRCd(void) goto label; } } - } while (count2 != clientlist.end()) |
