Cleanup - it shouldn't be necessary to call fill_pathname_slash

after fill_pathname_join
This commit is contained in:
twinaphex 2019-09-16 17:35:15 +02:00
parent aacc544300
commit 419fe62da8

View File

@ -179,9 +179,6 @@ void fill_pathname_application_special(char *s,
fill_pathname_join(s2, s1, "png",
PATH_MAX_LENGTH * sizeof(char)
);
fill_pathname_slash(s2,
PATH_MAX_LENGTH * sizeof(char)
);
strlcpy(s, s2, len);
free(s1);
free(s2);
@ -324,9 +321,6 @@ void fill_pathname_application_special(char *s,
fill_pathname_application_special(s1,
PATH_MAX_LENGTH * sizeof(char),
APPLICATION_SPECIAL_DIRECTORY_ASSETS_MATERIALUI);
fill_pathname_slash(s1,
PATH_MAX_LENGTH * sizeof(char)
);
strlcpy(s, s1, len);
free(s1);
@ -390,9 +384,6 @@ void fill_pathname_application_special(char *s,
s1, "avatars",
PATH_MAX_LENGTH * sizeof(char)
);
fill_pathname_slash(s2,
PATH_MAX_LENGTH * sizeof(char)
);
strlcpy(s, s2, len);
free(s1);
free(s2);
@ -415,9 +406,6 @@ void fill_pathname_application_special(char *s,
s1, "badges",
PATH_MAX_LENGTH * sizeof(char)
);
fill_pathname_slash(s2,
PATH_MAX_LENGTH * sizeof(char)
);
strlcpy(s, s2, len);
free(s1);
free(s2);