mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-08 05:36:35 +01:00
code cleanup
This commit is contained in:
@@ -146,7 +146,7 @@ static void uset_dwnld_path(struct user_settings *s, const char *val)
|
||||
|
||||
strcpy(s->download_path, val);
|
||||
|
||||
if (val[len] != '/')
|
||||
if (val[len - 1] != '/')
|
||||
strcat(s->download_path, "/");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user