[gvfs] afp: skip undocumented pad bytes after UTF8Name_offset
- From: Christian Kellner <gicmo src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] afp: skip undocumented pad bytes after UTF8Name_offset
- Date: Thu, 25 Aug 2011 19:27:35 +0000 (UTC)
commit ca05fa89d7b07783335c8c0445be4ac0887d051b
Author: Carl-Anton Ingmarsson <ca ingmarsson gmail com>
Date: Mon Jul 25 13:02:48 2011 +0200
afp: skip undocumented pad bytes after UTF8Name_offset
daemon/gvfsbackendafp.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/daemon/gvfsbackendafp.c b/daemon/gvfsbackendafp.c
index 6276900..2f5e33e 100644
--- a/daemon/gvfsbackendafp.c
+++ b/daemon/gvfsbackendafp.c
@@ -290,6 +290,8 @@ static void fill_info (GVfsBackendAfp *afp_backend,
char *utf8_name;
g_vfs_afp_reply_read_uint16 (reply, &UTF8Name_offset);
+ /* Pad */
+ g_vfs_afp_reply_read_uint32 (reply, NULL);
old_pos = g_vfs_afp_reply_get_pos (reply);
g_vfs_afp_reply_seek (reply, start_pos + UTF8Name_offset, G_SEEK_SET);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]