summaryrefslogtreecommitdiff
path: root/src/logind-seat.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-06-28 02:53:49 +0200
committerLennart Poettering <lennart@poettering.net>2011-06-28 02:53:49 +0200
commite7886786a6fec22fa770eb1554781d5f82c4b349 (patch)
tree9cd326fc090e9ef48e3195dbfb2d04cbd8386f65 /src/logind-seat.c
parent15e11d81e7c26439f583e1cf67ac3c712430a79e (diff)
logind: properly preallocate configured auto VTs
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r--src/logind-seat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c
index df91cd0d8a..bc695fea83 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);