Skip to content
Snippets Groups Projects
Commit 88a1a10e authored by Yang Tse's avatar Yang Tse
Browse files

Pay attention when typecasting an operation

parent 624e6572
No related branches found
No related tags found
No related merge requests found
......@@ -454,7 +454,7 @@ static int get_request(int sock, struct httprequest *req)
/*** end of httprequest init ***/
while (req->offset < REQBUFSIZ) {
ssize_t got = sread(sock, reqbuf + req->offset, REQBUFSIZ - req->offset);
ssize_t got = sread(sock, (reqbuf + req->offset), (REQBUFSIZ - req->offset));
if (got <= 0) {
if (got < 0) {
logmsg("recv() returned error: %d", errno);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment