mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-23 23:46:22 +00:00
Fix reading/writing linked files
"base" was not really base but the filename :-) Fix https://github.com/profanity-im/profanity/issues/1362
This commit is contained in:
@@ -307,6 +307,7 @@ get_file_or_linked(char *loc, char *basedir)
|
||||
// if relative, add basedir
|
||||
if (!g_str_has_prefix(true_loc, "/") && !g_str_has_prefix(true_loc, "~")) {
|
||||
GString *base_str = g_string_new(basedir);
|
||||
g_string_append(base_str, "/");
|
||||
g_string_append(base_str, true_loc);
|
||||
free(true_loc);
|
||||
true_loc = base_str->str;
|
||||
|
||||
Reference in New Issue
Block a user