From 2dd13e096dd61e6f21fed24d427fc3dd211b7da4 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 4 Sep 2004 13:11:02 +0000 Subject: [PATCH] (xdprval): Fix escaping of negative characters. --- src/lib/commands/xdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/commands/xdump.c b/src/lib/commands/xdump.c index 89c28866..b2b43b22 100644 --- a/src/lib/commands/xdump.c +++ b/src/lib/commands/xdump.c @@ -270,7 +270,7 @@ chridx_by_name(char *name) } /* - * Evaluate a attribute of an object into VAL. + * Evaluate a attribute of an object into VAL, return VAL. * TYPE is the attribute's type. * PTR points to the context object. * The attribute is stored there at offset OFF + IDX * S, where S is @@ -292,7 +292,7 @@ xdeval(struct valstr *val, nsc_type type, void *ptr, ptrdiff_t off, int idx) static char * xdprval(struct valstr *val, char *sep) { - char *s, *e; + unsigned char *s, *e; switch (val->val_type) { case NSC_TYPEID: