mirror of
https://github.com/dborth/snes9xgx.git
synced 2025-01-13 03:39:08 +01:00
fix off-by-one in http code
This commit is contained in:
parent
994643ee94
commit
87def924a7
@ -255,7 +255,7 @@ static bool http_split_url(char *host, char *path, const char *url)
|
|||||||
if (c == NULL || c[0] == 0)
|
if (c == NULL || c[0] == 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
snprintf(host, c-p, "%s", p);
|
snprintf(host, c-p+1, "%s", p);
|
||||||
strcpy(path, c);
|
strcpy(path, c);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user