X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Flogind-seat.c;h=bc695fea837f7daddd9e9393443e952deaec548f;hp=df91cd0d8a53ebc057dd77a197bc84e11be8953c;hb=e7886786a6fec22fa770eb1554781d5f82c4b349;hpb=15e11d81e7c26439f583e1cf67ac3c712430a79e diff --git a/src/logind-seat.c b/src/logind-seat.c index df91cd0d8..bc695fea8 100644 --- a/src/logind-seat.c +++ b/src/logind-seat.c @@ -199,7 +199,7 @@ static int seat_preallocate_vts(Seat *s) { if (!seat_is_vtconsole(s)) return 0; - for (i = 1; i < s->manager->n_autovts; i++) { + for (i = 1; i <= s->manager->n_autovts; i++) { int q; q = vt_allocate(i);