diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-13 23:11:57 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-13 23:11:57 -0400 |
commit | 71abd15c1b71836d35af5398fcc6b416baad73d3 (patch) | |
tree | 8b0dfd724d2513cfa8931345eb7282d743645cf3 /testing | |
parent | 9160a12ee157b90758fef0ee14da06d212930b58 (diff) |
Fixed ncurses problems.
Diffstat (limited to 'testing')
-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 | } |