* we did that +1 two lines above to avaid infinite loops
authorWilfried Göesgens <willi@citadel.org>
Mon, 15 Mar 2010 07:36:45 +0000 (07:36 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 15 Mar 2010 07:36:45 +0000 (07:36 +0000)
libcitadel/lib/stringbuf.c

index 160a33563cb0420b5bc711685f19e4773cc3db67..aa4abdeeaca779aefb36fa9cb249dc2eed7f32cf 100644 (file)
@@ -999,7 +999,7 @@ void StrBufStripAllBut(StrBuf *Buf, char leftboundary, char rightboundary)
        if (pRight != NULL)
                StrBufCutAt(Buf, 0, pRight - 1);
        if (pLeft != NULL)
-               StrBufCutLeft(Buf, pLeft - Buf->buf + 1);
+               StrBufCutLeft(Buf, pLeft - Buf->buf);
 }