* move the pointer one to the right, else we will loop infinite.
authorWilfried Göesgens <willi@citadel.org>
Sun, 14 Mar 2010 23:28:02 +0000 (23:28 +0000)
committerWilfried Göesgens <willi@citadel.org>
Sun, 14 Mar 2010 23:28:02 +0000 (23:28 +0000)
-- Diese und die folgenden Zeilen werden ignoriert --

M    lib/stringbuf.c

libcitadel/lib/stringbuf.c

index f0506886a4954df301132f4f440d306ddb10145b..160a33563cb0420b5bc711685f19e4773cc3db67 100644 (file)
@@ -987,6 +987,8 @@ void StrBufStripAllBut(StrBuf *Buf, char leftboundary, char rightboundary)
        while (pBuff != NULL) {
                pLeft = pBuff;
                pBuff = strchr(pBuff, leftboundary);
+               if (pBuff != NULL)
+                       pBuff++;
        }
                
        if (pLeft != NULL)