* substracting independend pointers with no conjunction gives mad numbers. thanks...
[citadel.git] / webcit / tcp_sockets.c
index b73823a58f70de86726abe77b403dac1805b8a93..c488b43158f032742e9df58eac54a87ce46ba361 100644 (file)
@@ -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