mirror of
https://github.com/dborth/fceugx.git
synced 2025-01-24 22:41:12 +01:00
fix off-by-one in http code
This commit is contained in:
parent
d35f6fa5b8
commit
57eda4b384
@ -256,7 +256,7 @@ static bool http_split_url(char *host, char *path, const char *url)
|
||||
if (c == NULL || c[0] == 0)
|
||||
return false;
|
||||
|
||||
snprintf(host, c-p, "%s", p);
|
||||
snprintf(host, c-p+1, "%s", p);
|
||||
strcpy(path, c);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user