diff options
author | Richard Jones <rjones@redhat.com> | 2010-02-19 13:51:07 +0000 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-02-19 13:51:07 +0000 |
commit | 219b80cc6c9c1410c39a6e540214727e3e3cf022 (patch) | |
tree | 1b06ac591b0a55469eaa6a747a8bfeaf36487c04 | |
parent | abe54abdd2a51f8fc6da26d4e5d4773f68da695e (diff) | |
download | libguestfs-219b80cc6c9c1410c39a6e540214727e3e3cf022.tar.gz libguestfs-219b80cc6c9c1410c39a6e540214727e3e3cf022.tar.xz libguestfs-219b80cc6c9c1410c39a6e540214727e3e3cf022.zip |
hivexsh: Print hex bytes >= 0x80 correctly.
These were being interpreted as signed chars, and thus printed
as "ffffff80" etc.
-rw-r--r-- | hivex/hivexsh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hivex/hivexsh.c b/hivex/hivexsh.c index a8ac0e1d..332b7739 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; |