mirror of https://github.com/OpenTTD/OpenTTD
(svn r19600) -Fix (r18994): Presence of online content was not properly updated after download due to duplicate slashes in the path.
parent
c233dc08c1
commit
ba5f5c1ce1
|
@ -604,6 +604,7 @@ void ClientNetworkContentSocketHandler::OnReceiveData(const char *data, size_t l
|
|||
|
||||
p = strrchr(str, '/');
|
||||
check_not_null(p);
|
||||
p++; // Start after the '/'
|
||||
|
||||
char tmp[MAX_PATH];
|
||||
if (strecpy(tmp, p, lastof(tmp)) == lastof(tmp)) {
|
||||
|
|
Loading…
Reference in New Issue