Skip to content

Commit 87446e6

Browse files
committed
WM (OpenBSD): fix process enumeration
1 parent bfaa73a commit 87446e6

File tree

1 file changed

+2
-2
lines changed
  • src/detection/displayserver/linux

1 file changed

+2
-2
lines changed

src/detection/displayserver/linux/wmde.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,10 @@ static const char* getFromProcesses(FFDisplayServerResult* result)
300300
for (int i = 0; i < count; ++i)
301301
{
302302
if(result->dePrettyName.length == 0)
303-
applyPrettyNameIfDE(result, proc->p_comm);
303+
applyPrettyNameIfDE(result, proc[i].p_comm);
304304

305305
if(result->wmPrettyName.length == 0)
306-
applyNameIfWM(result, proc->p_comm);
306+
applyNameIfWM(result, proc[i].p_comm);
307307

308308
if(result->dePrettyName.length > 0 && result->wmPrettyName.length > 0)
309309
break;

0 commit comments

Comments
 (0)