diff options
Diffstat (limited to 'testing/toxic/main.c')
-rw-r--r-- | testing/toxic/main.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c index b2310c80..7fa9e964 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c | |||
@@ -22,7 +22,10 @@ extern int add_req(uint8_t *public_key); // XXX | |||
22 | 22 | ||
23 | /* Holds status of chat windows */ | 23 | /* Holds status of chat windows */ |
24 | char WINDOW_STATUS[MAX_WINDOW_SLOTS]; | 24 | char WINDOW_STATUS[MAX_WINDOW_SLOTS]; |
25 | #define TOXICVER "0.1.0" //Will be moved to a -D flag later | 25 | |
26 | #ifndef TOXICVER | ||
27 | #define TOXICVER "NOVER" //Use the -D flag to set this | ||
28 | #endif | ||
26 | 29 | ||
27 | static ToxWindow windows[MAX_WINDOW_SLOTS]; | 30 | static ToxWindow windows[MAX_WINDOW_SLOTS]; |
28 | static ToxWindow* prompt; | 31 | static ToxWindow* prompt; |
@@ -37,7 +40,7 @@ void on_request(uint8_t *public_key, uint8_t *data, uint16_t length) | |||
37 | wprintw(prompt->window, "\nFriend request from:\n"); | 40 | wprintw(prompt->window, "\nFriend request from:\n"); |
38 | 41 | ||
39 | int i; | 42 | int i; |
40 | for (i = 0; i < 32; ++i) { | 43 | for (i = 0; i < KEY_SIZE_BYTES; ++i) { |
41 | wprintw(prompt->window, "%02x", public_key[i] & 0xff); | 44 | wprintw(prompt->window, "%02x", public_key[i] & 0xff); |
42 | } | 45 | } |
43 | 46 | ||