[libgxps] archive: interleaved paths must be always using / separators
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgxps] archive: interleaved paths must be always using / separators
- Date: Fri, 27 Jan 2017 19:24:38 +0000 (UTC)
commit 4a960bc1e66557b5583a8183dd68a603b6e4502d
Author: Ignacio Casal Quinteiro <qignacio amazon com>
Date: Fri Jan 27 09:36:02 2017 +0100
archive: interleaved paths must be always using / separators
We must ensure the paths are separated using / otherwise in
platforms like Windows we would endup with \ separators which clearly
do not point to any file.
libgxps/gxps-archive.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgxps/gxps-archive.c b/libgxps/gxps-archive.c
index c142b1b..2b28cc5 100644
--- a/libgxps/gxps-archive.c
+++ b/libgxps/gxps-archive.c
@@ -363,7 +363,7 @@ gxps_archive_open (GXPSArchive *archive,
path++;
if (!g_hash_table_contains (archive->entries, path)) {
- first_piece_path = g_build_filename (path, "[0].piece", NULL);
+ first_piece_path = g_build_path ("/", path, "[0].piece", NULL);
if (!g_hash_table_contains (archive->entries, first_piece_path)) {
g_free (first_piece_path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]