[ghex] paste-special: properly copy hex pairs for higher-order bytes



commit ad2e3db06db833911c77c6c7952b6ddb624722a7
Author: Logan Rathbone <poprocks gmail com>
Date:   Mon Jan 10 21:23:46 2022 -0500

    paste-special: properly copy hex pairs for higher-order bytes

 src/paste-special.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/paste-special.c b/src/paste-special.c
index 9832d3c..d625c22 100644
--- a/src/paste-special.c
+++ b/src/paste-special.c
@@ -169,7 +169,7 @@ hex_paste_data_to_delimited_hex (void)
 
        for (int i = 0; i < elems; ++i)
        {
-               g_string_append_printf (buf, "%.2X", doc_data[i]);
+               g_string_append_printf (buf, "%.2X", (guchar)doc_data[i]);
 
                if (i < elems - 1)
                        g_string_append_c (buf, ' ');


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