~ chicken-core (chicken-5) 27f4c00f7ffac2693d81c924bdd5970de0420aa3
commit 27f4c00f7ffac2693d81c924bdd5970de0420aa3
Author: Evan Hanson <evhan@foldling.org>
AuthorDate: Wed Mar 16 10:45:39 2016 +1300
Commit: Evan Hanson <evhan@foldling.org>
CommitDate: Wed Mar 16 10:45:39 2016 +1300
Really send C_DEBUGGER_REPLY_GET_BYTES responses as unsigned char values
As with 44f1623, whose commit message erroneously claims it changes
C_DEBUGGER_REPLY_GET_BYTES responses when in fact it changes the BLOB
type of REPLY_GET_SLOTS responses. This commit actually fixes
REPLY_GET_BYTES responses, in the same way.
diff --git a/dbg-stub.c b/dbg-stub.c
index bbfa3c57..39dee2a8 100644
--- a/dbg-stub.c
+++ b/dbg-stub.c
@@ -353,7 +353,7 @@ send_event(int event, C_char *loc, C_char *val, C_char *cloc, int cln)
send_string("(*");
while(mask--) {
- sprintf(rw_buffer, " %d", *(ptr++));
+ sprintf(rw_buffer, " %u", (unsigned char) *(ptr++));
send_string(rw_buffer);
}
Trap