ossp-pkg/lmtp2nntp/lmtp.c 1.17 -> 1.18
--- lmtp.c 2001/08/28 11:31:22 1.17
+++ lmtp.c 2001/08/29 14:58:21 1.18
@@ -218,7 +218,7 @@
size_t offset; /* required when cpBuf changed through realloc */
size_t offsetline; /* memorizing start of line when reallocing in the middle of a line */
- nBuf = 4096;
+ for (nBuf = 4096; nBuf > maxlen; nBuf = nBuf >> 1);
if ((cpBuf = (char *)malloc(nBuf)) == NULL)
return LMTP_ERR_MEM;
*cppBuf = cpBuf; /* tell caller about the buffer */
|
|