commit - a2cdc08c396d6ba3906ffb9478ce2ac52257ae93
commit + 2f105b1c0a9d8975e9b0fc9fce47c56a70a083fb
blob - 8f343ea418814102b3a0d2f02167860f33031c02
blob + 802bdc4cd17c11d71af838ba1e60e36bfd3789c9
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
#include "portab.h"
#include "io.h"
-static char UNUSED id[] = "$Id: conn.c,v 1.172 2005/08/27 23:42:23 fw Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.173 2005/08/28 00:19:29 fw Exp $";
#include "imp.h"
#include <assert.h>
return false;
}
- if (len < 3) { /* request was empty (only '\r\n') */
- array_trunc(&My_Connections[Idx].rbuf);
+ if (len <= 2) { /* request was empty (only '\r\n') */
+ array_moveleft(&My_Connections[Idx].rbuf, 1, delta); /* delta is either 1 or 2 */
break;
}
#ifdef ZLIB