Compare commits
2 Commits
9dbc44410d
...
79e6818684
Author | SHA1 | Date |
---|---|---|
EyitopeIO | 79e6818684 | |
EyitopeIO | 5d45e68f8f |
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue