diff --git a/src/chat.c b/src/chat.c index a62b94e..d89bfdd 100644 --- a/src/chat.c +++ b/src/chat.c @@ -566,7 +566,7 @@ static void chat_onDraw(ToxWindow *self, Tox *m) int i; for (i = 0; i < KEY_IDENT_DIGITS; ++i) - wprintw(statusbar->topline, "%x", friends[self->num].pub_key[i] & 0xff); + wprintw(statusbar->topline, "%02X", friends[self->num].pub_key[i] & 0xff); wprintw(statusbar->topline, "}\n"); mvwhline(ctx->linewin, 0, 0, ACS_HLINE, x2);