projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
if StrBuf_ServGetln() is called in a loop, its return value has to be checked for...
[citadel.git]
/
webcit
/
mainmenu.c
diff --git
a/webcit/mainmenu.c
b/webcit/mainmenu.c
index 8ddc28aa21d51e102eb9d4cf506fc50954abb65e..8942e93905b0e2b1758d3393070385dbb5701348 100644
(file)
--- a/
webcit/mainmenu.c
+++ b/
webcit/mainmenu.c
@@
-58,7
+58,8
@@
void do_generic(void)
LineBuf = NewStrBuf();
StrBufAppendBufPlain(Buf, HKEY("\n"), 0);
while (!Done) {
- StrBuf_ServGetln(LineBuf);
+ if (StrBuf_ServGetln(LineBuf) < 0)
+ break;
if ( (StrLength(LineBuf)==3) &&
!strcmp(ChrPtr(LineBuf), "000")) {
Done = 1;