From: Wilfried Göesgens Date: Sun, 29 Aug 2010 16:55:55 +0000 (+0000) Subject: * substracting independend pointers with no conjunction gives mad numbers. thanks... X-Git-Tag: v7.86~62 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=0593522c718afc15b41c50f4f1041d165d555c20 * substracting independend pointers with no conjunction gives mad numbers. thanks samjam for pointing that out. (cherry picked from commit 7be3fa3266788de371f7ba1c1bc0d701b0080a26) --- diff --git a/webcit/tcp_sockets.c b/webcit/tcp_sockets.c index b73823a58..c488b4315 100644 --- a/webcit/tcp_sockets.c +++ b/webcit/tcp_sockets.c @@ -152,9 +152,9 @@ int StrBuf_ServGetln(StrBuf *buf) #ifdef SERV_TRACE else { - long pos=0; + long pos = 0; if (WCC->ReadPos != NULL) - pos = WCC->ReadPos - ChrPtr(buf); + pos = WCC->ReadPos - ChrPtr(WCC->ReadBuf); lprintf(9, "%3d<<<[%ld]%s\n", WC->serv_sock, pos, ChrPtr(buf)); } #endif