Fixes to Coverity defects 83027 73421 72714 72671 72646 72642

This commit is contained in:
Markus Makela
2014-12-03 17:56:22 +02:00
parent 89c3b01925
commit 1e2027f4dc
6 changed files with 11 additions and 11 deletions

View File

@ -177,7 +177,7 @@ HTTPD_session *client_data = NULL;
j++;
}
while (!ISspace(buf[j]) && (i < sizeof(url) - 1) && (j < sizeof(buf) - 1)) {
while ((j < sizeof(buf) - 1) && !ISspace(buf[j]) && (i < sizeof(url) - 1)) {
url[i] = buf[j];
i++; j++;
}