X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fcontext_loop.c;h=e0577d7eb4585aa4b720a69d08135aba51c6dc03;hb=47b79a3ae2da5da98aa78f081e4a8889a5451a9f;hp=43adf38dd536b6eed464f2c850599b9486687e93;hpb=0e18e913fe5977affc0e5b9587ce5ccbe528b9d5;p=citadel.git diff --git a/webcit/context_loop.c b/webcit/context_loop.c index 43adf38dd..e0577d7eb 100644 --- a/webcit/context_loop.c +++ b/webcit/context_loop.c @@ -411,9 +411,10 @@ int ReadHTTPRequest (ParsedHttpHdrs *Hdr) StrBufExtract_token(HeaderName, Line, 0, ':'); pchs = ChrPtr(Line); + pche = pchs + StrLength(Line); pch = pchs + StrLength(HeaderName) + 1; pche = pchs + StrLength(Line); - while (isspace(*pch) && (pch < pche)) + while ((pch < pche) && isspace(*pch)) pch ++; StrBufCutLeft(Line, pch - pchs);