diff options
-rw-r--r-- | testing/nTox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testing/nTox.c b/testing/nTox.c index a492a52b..013afcc4 100644 --- a/testing/nTox.c +++ b/testing/nTox.c | |||
@@ -57,13 +57,13 @@ void line_eval(char lines[HISTORY][STRING_LENGTH], char *line) | |||
57 | } else { | 57 | } else { |
58 | int j; | 58 | int j; |
59 | for (j=i+1; j<len; j++) { | 59 | for (j=i+1; j<len; j++) { |
60 | message[j] = line[j+3]; | 60 | message[j-i-1] = line[j+3]; |
61 | } | 61 | } |
62 | break; | 62 | break; |
63 | } | 63 | } |
64 | } | 64 | } |
65 | int num = atoi(numstring); | 65 | int num = atoi(numstring); |
66 | m_sendmessage(num, (uint8_t*) message, sizeof((uint8_t*)message)); | 66 | m_sendmessage(num, (uint8_t*) message, sizeof(message)); |
67 | } | 67 | } |
68 | } else { | 68 | } else { |
69 | //new_lines(line); | 69 | //new_lines(line); |
@@ -140,7 +140,7 @@ void print_request(uint8_t * public_key, uint8_t * data, uint16_t length) | |||
140 | new_lines("Friend request accepted."); | 140 | new_lines("Friend request accepted."); |
141 | do_refresh(); | 141 | do_refresh(); |
142 | int num = m_addfriend_norequest(public_key); | 142 | int num = m_addfriend_norequest(public_key); |
143 | char numchar[10]; | 143 | char numchar[100]; |
144 | sprintf(numchar, "Friend added, number: %d", num); | 144 | sprintf(numchar, "Friend added, number: %d", num); |
145 | new_lines(numchar); | 145 | new_lines(numchar); |
146 | } | 146 | } |