Skip to content

Commit 609d32f

Browse files
committed
brlapi: Fix taking the VT number from the chosen session
The loop above was meant to decide which session to take the VT number from.
1 parent a32e50a commit 609d32f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Programs/brlapi_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1806,7 +1806,7 @@ int BRLAPI_STDCALL brlapi__enterTtyModeWithPath(brlapi_handle_t *handle, const i
18061806
}
18071807
}
18081808

1809-
if (chosen >= 0) sd_session_get_vt(sessions[i], &vtnr);
1809+
if (chosen >= 0) sd_session_get_vt(sessions[chosen], &vtnr);
18101810

18111811
for (i = 0; i < nsessions; i++) free(sessions[i]);
18121812
free(sessions);

0 commit comments

Comments
 (0)