summaryrefslogtreecommitdiff
path: root/testing/toxic/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testing/toxic/main.c')
-rw-r--r--testing/toxic/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/testing/toxic/main.c b/testing/toxic/main.c
index 13577cc7..162cce68 100644
--- a/testing/toxic/main.c
+++ b/testing/toxic/main.c
@@ -31,7 +31,10 @@ extern int add_req(uint8_t *public_key); // XXX
31 31
32/* Holds status of chat windows */ 32/* Holds status of chat windows */
33char WINDOW_STATUS[MAX_WINDOW_SLOTS]; 33char WINDOW_STATUS[MAX_WINDOW_SLOTS];
34#define TOXICVER "0.1.0" //Will be moved to a -D flag later 34
35#ifndef TOXICVER
36#define TOXICVER "NOVER" //Use the -D flag to set this
37#endif
35 38
36static ToxWindow windows[MAX_WINDOW_SLOTS]; 39static ToxWindow windows[MAX_WINDOW_SLOTS];
37static ToxWindow* prompt; 40static ToxWindow* prompt;
@@ -46,7 +49,7 @@ void on_request(uint8_t *public_key, uint8_t *data, uint16_t length)
46 wprintw(prompt->window, "\nFriend request from:\n"); 49 wprintw(prompt->window, "\nFriend request from:\n");
47 50
48 int i; 51 int i;
49 for (i = 0; i < 32; ++i) { 52 for (i = 0; i < KEY_SIZE_BYTES; ++i) {
50 wprintw(prompt->window, "%02x", public_key[i] & 0xff); 53 wprintw(prompt->window, "%02x", public_key[i] & 0xff);
51 } 54 }
52 55