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

small fixes

This commit is contained in:
Jfreegman 2013-10-22 06:39:13 -04:00
parent dee263704c
commit 6595e2bce5

View File

@ -372,10 +372,10 @@ void execute(WINDOW *window, ToxWindow *prompt, Tox *m, char *u_cmd)
while (u_cmd[i] != '\0' && num_args < MAX_NUM_ARGS) {
start = &u_cmd[i];
if (u_cmd[i] == '\"') {
if (*start == '\"') {
while (u_cmd[++i] != '\"') {
if (u_cmd[i] == '\0') {
wprintw(window, "Invalid command. Did you forget a closing \"?\n");
wprintw(window, "Invalid argument. Did you forget a closing \"?\n");
return;
}
}