* substracting independend pointers with no conjunction gives mad numbers. thanks...
authorWilfried Göesgens <willi@citadel.org>
Sun, 29 Aug 2010 16:55:55 +0000 (16:55 +0000)
committerWilfried Goesgens <dothebart@citadel.org>
Wed, 1 Sep 2010 22:24:04 +0000 (00:24 +0200)
(cherry picked from commit 7be3fa3266788de371f7ba1c1bc0d701b0080a26)

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