Fix bug in text client that causes parts of listings to be lost.
authorDave West <davew@uncensored.citadel.org>
Sat, 3 Nov 2007 22:22:51 +0000 (22:22 +0000)
committerDave West <davew@uncensored.citadel.org>
Sat, 3 Nov 2007 22:22:51 +0000 (22:22 +0000)
Most noticeable in .Z command.

citadel/citadel_ipc.c

index 26751df7b7786c730eb9c4a4bfe946ffd4dbbc59..6b097551d1d50234c7530f0bae7d08f9eda0097d 100644 (file)
@@ -2932,11 +2932,11 @@ static void CtdlIPC_getline(CtdlIPC* ipc, char *buf)
                        while ( ReadNetworkChunk(ipc) < 0 )
                                sleep (1);
 
+               bptr = buf;
+
                while (1)
                {
-                       
                        aptr = ipc->BufPtr;
-                       bptr = buf;
                        aeptr = ipc->Buf + ipc->BufSize;
                        while ((aptr < aeptr) && 
                               (bptr < beptr) &&
@@ -2983,8 +2983,6 @@ static void CtdlIPC_getline(CtdlIPC* ipc, char *buf)
                                ipc->BufUsed -= delta;
                                ipc->BufSize = NewBufSize;
                        }
-                       else {
-                       }                       
                        if (ReadNetworkChunk(ipc) <0)
                                return;
                }