summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Mangano2013-10-30 18:15:14 +0100
committerFrédéric Mangano2013-10-30 18:15:14 +0100
commitfbd7c737e910f5aa7a67bf27933704a376b31bb7 (patch)
treee95b4c49d72e63e4f84425ebd9b371d8ba480acd
parentdafbee5b8acefdc7d004137ebccf2e7bb4b0f970 (diff)
downloadlastos-fbd7c737e910f5aa7a67bf27933704a376b31bb7.tar.gz
lastos-fbd7c737e910f5aa7a67bf27933704a376b31bb7.zip
mem: proper byte manipulation
-rw-r--r--shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell.c b/shell.c
index 01dded5..ae7a9df 100644
--- a/shell.c
+++ b/shell.c
@@ -23,9 +23,9 @@ static void mem(struct irc_message *msg, void *data)
arg = hextou32(cmd + 1);
switch (*cmd) {
case '+':
- (*((char*) arg))++;
+ (*((uint8_t*) arg))++;
case '*':
- irc_privmsg(dst, u32tohex(buffer, *((uint32_t*) arg)));
+ irc_privmsg(dst, bstohex(buffer, (uint8_t*) arg, 8));
break;
case 'd':
irc_privmsg(dst, u32tohex(buffer, (uint32_t) debug));