We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ad3eb6 commit 1396aaaCopy full SHA for 1396aaa
opkrun.c
@@ -429,11 +429,11 @@ int main(int argc, char **argv)
429
430
/* Initialize keymap rom command */
431
char command[PATH_MAX];
432
- strcpy(command, "keymap rom");
433
if (rom_arg >= 0) {
434
- strcat(command, " \"");
435
- strncat(command, args[rom_arg], PATH_MAX - 1);
436
- strncat(command, "\"", PATH_MAX - 1);
+ snprintf(command, PATH_MAX - 1, "keymap rom '%s'",
+ args[rom_arg]);
+ } else {
+ strcpy(command, "keymap rom");
437
}
438
printf("Applied keymap rom command: \"%s\"\n", command);
439
system(command);
0 commit comments