summaryrefslogtreecommitdiff
path: root/testing/toxic/main.c
diff options
context:
space:
mode:
authorSimon Levermann <simon@levermaenner.de>2013-08-08 18:06:10 +0200
committerSimon Levermann <simon@levermaenner.de>2013-08-08 18:06:10 +0200
commit320c5a6708fba36c48c62ec0dca8ad2d5b865b5d (patch)
treebb4d459ba2531f960f6f955a9facff500f8ffb4a /testing/toxic/main.c
parentb5f5b1a111d9e08b2b001b5d4d76629019462f39 (diff)
parentcaedd4489ef34e4afffbde9c4917439f3187f6ab (diff)
Merge branch 'upstream'
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