projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* add slash-stripper
[citadel.git]
/
libcitadel
/
lib
/
stringbuf.c
diff --git
a/libcitadel/lib/stringbuf.c
b/libcitadel/lib/stringbuf.c
index 33a472d88df7449cd83e88881f331ca79fcad46a..4990429ca9e18dc19b48ff35da40829d5c125163 100644
(file)
--- a/
libcitadel/lib/stringbuf.c
+++ b/
libcitadel/lib/stringbuf.c
@@
-1553,9
+1553,9
@@
int StrBufTCP_read_buffered_line_fast(StrBuf *Line,
{
pche = buf->buf + buf->BufUsed;
pch = pos;
- while ((pch <
=
pche) && (*pch != '\n'))
+ while ((pch < pche) && (*pch != '\n'))
pch ++;
- if (
*pch == 0
)
+ if (
(pch >= pche) || (*pch == '\0')
)
pch = NULL;
if ((pch != NULL) &&
(pch <= pche))