projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e0de9c
)
* StrBufStripAllBut(): cut at the right border not one char in front of it
author
Wilfried Göesgens
<willi@citadel.org>
Tue, 16 Mar 2010 19:46:30 +0000
(19:46 +0000)
committer
Wilfried Göesgens
<willi@citadel.org>
Tue, 16 Mar 2010 19:46:30 +0000
(19:46 +0000)
libcitadel/lib/stringbuf.c
patch
|
blob
|
history
diff --git
a/libcitadel/lib/stringbuf.c
b/libcitadel/lib/stringbuf.c
index aa4abdeeaca779aefb36fa9cb249dc2eed7f32cf..562376a27937cccca53e3f44cb240d0ec7d8f324 100644
(file)
--- a/
libcitadel/lib/stringbuf.c
+++ b/
libcitadel/lib/stringbuf.c
@@
-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);
}