1
1
mirror of https://github.com/swaywm/sway synced 2024-11-18 00:24:17 +01:00

Copy filename from argv

Fix #449
This commit is contained in:
Mikkel Oscar Lyderik 2016-01-17 18:47:36 +01:00
parent 2597321236
commit e0ba689dba

@ -229,7 +229,7 @@ int main(int argc, char **argv) {
sway_abort("Invalid usage. See `man swaygrab` %d %d", argc, optind);
}
} else if (optind < argc) {
file = argv[optind];
file = strdup(argv[optind]);
}
int socketfd = ipc_open_socket(socket_path);