mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ...
Try to be as portable as possible, use GLib path name functions and macros.
This commit is contained in:
@@ -39,7 +39,7 @@ input_file_open(struct input_stream *is, const char *filename)
|
||||
|
||||
char* pathname = g_strdup(filename);
|
||||
|
||||
if (filename[0] != '/')
|
||||
if (!g_path_is_absolute(filename))
|
||||
{
|
||||
g_free(pathname);
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user