Compare commits

..

2 Commits

Author SHA1 Message Date
EyitopeIO 79e6818684
Merge 5d45e68f8f into d6d4af0c8c 2024-04-20 22:02:50 +00:00
EyitopeIO 5d45e68f8f fix: mount URL with spaces 2024-04-20 23:02:41 +01:00
1 changed files with 2 additions and 4 deletions

View File

@ -51,9 +51,7 @@ char *path_append(const char *path, const char *filename)
char *escape_spaces(const char *path)
{
char space = ' ';
if (!strchr(path, space)) {
if (!strchr(path, ' ')) {
return NULL;
}
@ -79,7 +77,7 @@ char *escape_spaces(const char *path)
if (j >= MAX_PATH_LEN - 1) {
lprintf(fatal, "path too long: %s\n", path);
}
if (path[i] == space) {
if (path[i] == ' ') {
mempcpy(escaped + j, replacement, replacement_len);
j += replacement_len;
} else {