mirror of
https://github.com/ksherlock/gopher.git
synced 2024-06-02 02:41:33 +00:00
\ for directory separator
This commit is contained in:
parent
a8fd9c9a96
commit
d2642a63d5
4
smb.c
4
smb.c
|
@ -1187,7 +1187,9 @@ static uint16_t *file_path(const char *url, const URLComponents *components)
|
||||||
|
|
||||||
for (i = 0; i < path.length; ++i)
|
for (i = 0; i < path.length; ++i)
|
||||||
{
|
{
|
||||||
rv[i + 1] = url[path.location++];
|
uint16_t c = url[path.location++];
|
||||||
|
if (c == '/') c = '\\';
|
||||||
|
rv[i + 1] = c;
|
||||||
}
|
}
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user