1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 20:53:01 +01:00

make correct error message print

This commit is contained in:
Jfreegman 2013-09-27 22:12:52 -04:00
parent 38f6f446c4
commit 4ffb98dcdb
2 changed files with 2 additions and 2 deletions

View File

@ -364,7 +364,7 @@ void cmd_nick(WINDOW *window, ToxWindow *prompt, Tox *m, int argc, char **argv)
void cmd_note(WINDOW *window, ToxWindow *prompt, Tox *m, int argc, char **argv)
{
if (argc != 1) {
if (argc < 1) {
wprintw(window, "Wrong number of arguments.\n");
return;
}

View File

@ -157,7 +157,7 @@ static void prompt_onDraw(ToxWindow *self, Tox *m)
size_t i;
for (i = 0; i < (prompt_buf_pos); ++i) {
for (i = 0; i < prompt_buf_pos; ++i) {
if ((prompt_buf[i] == '\n') && (y != 0))
--y;
}