diff options
Diffstat (limited to 'src/gopherclient.cpp')
| -rw-r--r-- | src/gopherclient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gopherclient.cpp b/src/gopherclient.cpp index 2c2cdf5..74359c6 100644 --- a/src/gopherclient.cpp +++ b/src/gopherclient.cpp @@ -69,8 +69,8 @@ void GopherClient::on_readRead() if(not is_processing_binary) { // Strip the "lone dot" from gopher data - if(int index = body.indexOf(".\r\n"); index >= 0) { - body.resize(index); + if(int index = body.indexOf("\r\n.\r\n"); index >= 0) { + body.resize(index + 2); socket.close(); } } |
