Skip to content

Commit 3fec7fd

Browse files
committed
Fix PR feedback
1 parent f8f9a65 commit 3fec7fd

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

i3lock-bash

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ _i3lock() {
2323
"--debug"
2424

2525
# i3lock-color OPTIONS
26-
2726
"--screen -S"
2827
"--blur -B"
2928
"--clock --force-clocl -k"
@@ -82,20 +81,16 @@ _i3lock() {
8281
"--pass-power-keys"
8382
"--pass-volume-keys"
8483
"--custom-key-commands"
85-
8684
"--cmd-brightness-up"
8785
"--cmd-brightness-down"
88-
8986
"--cmd-media-play"
9087
"--cmd-media-pause"
9188
"--cmd-media-stop"
9289
"--cmd-media-next"
9390
"--cmd-media-prev"
94-
9591
"--cmd-audio-mute"
9692
"--cmd-volume-up"
9793
"--cmd-volume-down"
98-
9994
"--cmd-power-down"
10095
"--cmd-power-off"
10196
"--cmd-power-sleep"

i3lock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,7 +1757,7 @@ int main(int argc, char *argv[]) {
17571757
unlock_indicator = false;
17581758
break;
17591759
case 'i':
1760-
image_path = optarg;
1760+
image_path = strdup(optarg);
17611761
break;
17621762
case 't':
17631763
if(bg_type != NONE) {
@@ -2382,7 +2382,7 @@ int main(int argc, char *argv[]) {
23822382
no_verify = true;
23832383
break;
23842384
case 998:
2385-
image_raw_format = optarg;
2385+
image_raw_format = strdup(optarg);
23862386
break;
23872387
case 999:
23882388
debug_mode = true;

0 commit comments

Comments
 (0)