Skip to content

Commit f806d03

Browse files
g0mb4brndnmtthws
authored andcommitted
Fix name check.
A random process named `conky11` won't stop Conky to start when `-U` is provided.
1 parent 2d1a921 commit f806d03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ static bool is_conky_already_running() {
284284
}
285285

286286
while (fgets(line, sizeof(line), fp)) {
287-
if (!strncmp(line, "conky", 5)) {
287+
if (!strncmp(line, "conky\n", 6)) {
288288
instances++;
289289
}
290290
}

0 commit comments

Comments
 (0)