Fix to Coverity defects 72714 75940 75941

This commit is contained in:
Markus Makela
2014-11-13 09:09:11 +02:00
parent fb9d792859
commit 59b587462a
3 changed files with 4 additions and 3 deletions

View File

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