* StrBufStripAllBut(): cut at the right border not one char in front of it
authorWilfried Göesgens <willi@citadel.org>
Tue, 16 Mar 2010 19:46:30 +0000 (19:46 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 16 Mar 2010 19:46:30 +0000 (19:46 +0000)
libcitadel/lib/stringbuf.c

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