projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
260a9cc
)
Fix GResourceFile get_parent()
author
Alexander Larsson
<alexl@redhat.com>
Fri, 3 Feb 2012 14:05:03 +0000
(15:05 +0100)
committer
Alexander Larsson
<alexl@redhat.com>
Fri, 3 Feb 2012 14:05:43 +0000
(15:05 +0100)
This was erronously losing the last char.
gio/gresourcefile.c
patch
|
blob
|
history
diff --git
a/gio/gresourcefile.c
b/gio/gresourcefile.c
index
3a27474
..
20b6c64
100644
(file)
--- 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);
}