1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-12-07 04:16:34 +01:00

Remove ability to set note with status command

This commit is contained in:
jfreegman
2018-10-08 13:47:08 -04:00
parent 56e03a3f8b
commit 258736995d
4 changed files with 18 additions and 33 deletions

View File

@@ -181,11 +181,10 @@ static int parse_command(WINDOW *w, ToxWindow *self, const char *input, char (*a
}
int num_args = 0;
int i = 0; // index of last char in an argument
/* characters wrapped in double quotes count as one arg */
while (num_args < MAX_NUM_ARGS) {
i = char_find(0, cmd, ' ');
int i = char_find(0, cmd, ' '); // index of last char in an argument
memcpy(args[num_args], cmd, i);
args[num_args++][i] = '\0';