[glib] Fix GResourceFile get_parent()
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix GResourceFile get_parent()
- Date: Fri, 3 Feb 2012 14:06:15 +0000 (UTC)
commit ac800fa8febe2370cab2de2e0f4ed5abb431e963
Author: Alexander Larsson <alexl redhat com>
Date: Fri Feb 3 15:05:03 2012 +0100
Fix GResourceFile get_parent()
This was erronously losing the last char.
gio/gresourcefile.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gresourcefile.c b/gio/gresourcefile.c
index 3a27474..20b6c64 100644
--- a/gio/gresourcefile.c
+++ b/gio/gresourcefile.c
@@ -289,7 +289,7 @@ g_resource_file_get_parent (GFile *file)
parent = g_object_new (G_TYPE_RESOURCE_FILE, NULL);
parent->path = g_strndup (resource->path,
- end - resource->path - 1);
+ end - resource->path);
return G_FILE (parent);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]