1
0
mirror of https://github.com/Tha14/toxic.git synced 2026-01-24 16:43:15 +01:00

fix magic numbers

This commit is contained in:
Jfreegman
2013-08-08 04:51:58 -04:00
parent 90acd2dfef
commit 297ee1ecaa
4 changed files with 19 additions and 17 deletions

2
main.c
View File

@@ -37,7 +37,7 @@ void on_request(uint8_t *public_key, uint8_t *data, uint16_t length)
wprintw(prompt->window, "\nFriend request from:\n");
int i;
for (i = 0; i < 32; ++i) {
for (i = 0; i < KEY_SIZE_BYTES; ++i) {
wprintw(prompt->window, "%02x", public_key[i] & 0xff);
}