From 219b80cc6c9c1410c39a6e540214727e3e3cf022 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Fri, 19 Feb 2010 13:51:07 +0000 Subject: [PATCH] hivexsh: Print hex bytes >= 0x80 correctly. These were being interpreted as signed chars, and thus printed as "ffffff80" etc. --- hivex/hivexsh.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hivex/hivexsh.c b/hivex/hivexsh.c index a8ac0e1..332b773 100644 --- a/hivex/hivexsh.c +++ b/hivex/hivexsh.c @@ -800,7 +800,8 @@ cmd_lsval (char *key) case hive_t_full_resource_description: case hive_t_resource_requirements_list: default: { - char *data = hivex_value_value (h, values[i], &t, &len); + unsigned char *data = + (unsigned char *) hivex_value_value (h, values[i], &t, &len); if (!data) goto error; -- 1.8.3.1