]> git.pond.sub.org Git - empserver/commitdiff
(xdprval): Fix escaping of negative characters.
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 4 Sep 2004 13:11:02 +0000 (13:11 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 4 Sep 2004 13:11:02 +0000 (13:11 +0000)
src/lib/commands/xdump.c

index 89c288668c5687afc9896a982e3dbc8780750d38..b2b43b2222ffcd03eba85f9b17a0e87ec652a3ca 100644 (file)
@@ -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: