[gvfs] mtp: convert icon id using hexadecimal base instead of decimal one



commit fbb887f56f3b28fe03ef2bdad96c114cf8a2661c
Author: Rok Mandeljc <rok mandeljc gmail com>
Date:   Sun Aug 3 18:36:55 2014 +0200

    mtp: convert icon id using hexadecimal base instead of decimal one
    
    This is a fix for regression introduced by 30697fe32d47 ("mtp: in
    debug traces, print IDs as hexadecimal values instead of decimal
    ones"), which changed format of icon id constructed in
    get_file_info() from decimal to hexadecimal, while the inverse
    conversion in do_open_icon_for_read() remained unchanged, using
    decimal base.
    
    Signed-off-by: Rok Mandeljc <rok mandeljc gmail com>

 daemon/gvfsbackendmtp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c
index 4d2fdf4..38df2b8 100644
--- a/daemon/gvfsbackendmtp.c
+++ b/daemon/gvfsbackendmtp.c
@@ -1952,7 +1952,7 @@ do_open_icon_for_read (GVfsBackend *backend,
 
   FAIL_DURING_UNMOUNT();
 
-  guint id = strtol (icon_id, NULL, 10);
+  guint id = strtol (icon_id, NULL, 16);
 
   if (id > 0) {
     GByteArray *bytes;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]