diff options
Diffstat (limited to 'testing/nTox.c')
-rw-r--r-- | testing/nTox.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index 9d44d757..24d40ead 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -44,15 +44,12 @@ int x, y; | |||
44 | uint8_t pending_requests[256][CLIENT_ID_SIZE]; | 44 | uint8_t pending_requests[256][CLIENT_ID_SIZE]; |
45 | uint8_t num_requests = 0; | 45 | uint8_t num_requests = 0; |
46 | 46 | ||
47 | // 01513F29A0483B3F482478B4A039041E19571249AE1F4E323E4C1C6A446BFF06 | ||
48 | // 01513F29A0483B3F482478B4A039041E19571249AE1F4E323E4C1C6A446BFF06 | ||
49 | // 01513F29A0483B3F482478B4A039041E19571249AE1F4E323E4C1C6A446BFF0 | ||
50 | void get_id(char *data) | 47 | void get_id(char *data) |
51 | { | 48 | { |
52 | char idstring0[200]; | 49 | char idstring0[200]; |
53 | char idstring1[PUB_KEY_BYTES][5]; | 50 | char idstring1[PUB_KEY_BYTES][5]; |
54 | char idstring2[PUB_KEY_BYTES][5]; | 51 | char idstring2[PUB_KEY_BYTES][5]; |
55 | int i; | 52 | int i = 0; |
56 | for(i = 0; i < PUB_KEY_BYTES; i++) | 53 | for(i = 0; i < PUB_KEY_BYTES; i++) |
57 | { | 54 | { |
58 | if (self_public_key[i] < (PUB_KEY_BYTES / 2)) | 55 | if (self_public_key[i] < (PUB_KEY_BYTES / 2)) |
@@ -62,7 +59,7 @@ void get_id(char *data) | |||
62 | sprintf(idstring2[i], "%hhX",self_public_key[i]); | 59 | sprintf(idstring2[i], "%hhX",self_public_key[i]); |
63 | } | 60 | } |
64 | strcpy(idstring0,"[i] ID: "); | 61 | strcpy(idstring0,"[i] ID: "); |
65 | int j; | 62 | int j = 0; |
66 | for (j = 0; j < PUB_KEY_BYTES; j++) { | 63 | for (j = 0; j < PUB_KEY_BYTES; j++) { |
67 | strcat(idstring0,idstring1[j]); | 64 | strcat(idstring0,idstring1[j]); |
68 | strcat(idstring0,idstring2[j]); | 65 | strcat(idstring0,idstring2[j]); |