diff options
| author | 2013-05-22 21:18:50 +0100 | |
|---|---|---|
| committer | 2013-06-06 01:45:04 +0100 | |
| commit | 37d97550b147e0d14f6a9e279f8505b7d49c84bb (patch) | |
| tree | 207d703258746f1bc0902c638e511d60437dfb44 /src/modules/m_ident.cpp | |
| parent | Convert User::SendText to use std::string. (diff) | |
| download | inspircd++-37d97550b147e0d14f6a9e279f8505b7d49c84bb.tar.gz inspircd++-37d97550b147e0d14f6a9e279f8505b7d49c84bb.tar.bz2 inspircd++-37d97550b147e0d14f6a9e279f8505b7d49c84bb.zip | |
Convert a ton of uses of MAXBUF to use a fixed buffer size.
Diffstat (limited to 'src/modules/m_ident.cpp')
| -rw-r--r-- | src/modules/m_ident.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 00ff75f59..9f67a6242 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -213,8 +213,8 @@ class IdentRequestSocket : public EventHandler /* We don't really need to buffer for incomplete replies here, since IDENT replies are * extremely short - there is *no* sane reason it'd be in more than one packet */ - char ibuf[MAXBUF]; - int recvresult = ServerInstance->SE->Recv(this, ibuf, MAXBUF-1, 0); + char ibuf[256]; + int recvresult = ServerInstance->SE->Recv(this, ibuf, sizeof(ibuf)-1, 0); /* Close (but don't delete from memory) our socket * and flag as done since the ident lookup has finished |
