1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 03:16:45 +02:00

No longer require quotes to enclose paths

This commit is contained in:
jfreegman
2018-10-08 00:47:51 -04:00
parent b6c746b5f5
commit 56e03a3f8b
12 changed files with 111 additions and 97 deletions

View File

@ -151,9 +151,9 @@ void cmd_run(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX
if (argc != 1) {
if (argc < 1) {
error_str = "Path must be specified!";
error_str = "Path must be specified.";
} else {
error_str = "Only one argument allowed!";
error_str = "Only one argument allowed.";
}
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, error_str);
@ -163,7 +163,7 @@ void cmd_run(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX
fp = fopen(argv[1], "r");
if (fp == NULL) {
error_str = "Path does not exist!";
error_str = "Path does not exist.";
line_info_add(self, NULL, NULL, NULL, SYS_MSG, 0, 0, error_str);
return;