Skip to content

Commit 4ad3eb6

Browse files
committed
quote rom path
Signed-off-by: Michel-FK <[email protected]>
1 parent 9f47c81 commit 4ad3eb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

opkrun.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,9 @@ int main(int argc, char **argv)
431431
char command[PATH_MAX];
432432
strcpy(command, "keymap rom");
433433
if (rom_arg >= 0) {
434-
strcat(command, " ");
434+
strcat(command, " \"");
435435
strncat(command, args[rom_arg], PATH_MAX - 1);
436+
strncat(command, "\"", PATH_MAX - 1);
436437
}
437438
printf("Applied keymap rom command: \"%s\"\n", command);
438439
system(command);

0 commit comments

Comments
 (0)