mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 01:36:17 +01:00
Fix GResourceFile get_parent()
This was erronously losing the last char.
This commit is contained in:
parent
260a9cc290
commit
ac800fa8fe
@ -289,7 +289,7 @@ g_resource_file_get_parent (GFile *file)
|
|||||||
|
|
||||||
parent = g_object_new (G_TYPE_RESOURCE_FILE, NULL);
|
parent = g_object_new (G_TYPE_RESOURCE_FILE, NULL);
|
||||||
parent->path = g_strndup (resource->path,
|
parent->path = g_strndup (resource->path,
|
||||||
end - resource->path - 1);
|
end - resource->path);
|
||||||
|
|
||||||
return G_FILE (parent);
|
return G_FILE (parent);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user