mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed ncurses problems.
This commit is contained in:
parent
9160a12ee1
commit
71abd15c1b
|
@ -57,13 +57,13 @@ void line_eval(char lines[HISTORY][STRING_LENGTH], char *line)
|
||||||
} else {
|
} else {
|
||||||
int j;
|
int j;
|
||||||
for (j=i+1; j<len; j++) {
|
for (j=i+1; j<len; j++) {
|
||||||
message[j] = line[j+3];
|
message[j-i-1] = line[j+3];
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int num = atoi(numstring);
|
int num = atoi(numstring);
|
||||||
m_sendmessage(num, (uint8_t*) message, sizeof((uint8_t*)message));
|
m_sendmessage(num, (uint8_t*) message, sizeof(message));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//new_lines(line);
|
//new_lines(line);
|
||||||
|
@ -140,7 +140,7 @@ void print_request(uint8_t * public_key, uint8_t * data, uint16_t length)
|
||||||
new_lines("Friend request accepted.");
|
new_lines("Friend request accepted.");
|
||||||
do_refresh();
|
do_refresh();
|
||||||
int num = m_addfriend_norequest(public_key);
|
int num = m_addfriend_norequest(public_key);
|
||||||
char numchar[10];
|
char numchar[100];
|
||||||
sprintf(numchar, "Friend added, number: %d", num);
|
sprintf(numchar, "Friend added, number: %d", num);
|
||||||
new_lines(numchar);
|
new_lines(numchar);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user