]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/login/logind-seat.c
login: fix pos-array allocation
[thirdparty/systemd.git] / src / login / logind-seat.c
index 631be5f7409830d87592f6b278ce3057911e1b6a..36ec7ed75740004fc430877d73c770fbfaa910c1 100644 (file)
@@ -475,7 +475,7 @@ void seat_claim_position(Seat *s, Session *session, unsigned int pos) {
         if (seat_has_vts(s))
                 pos = session->vtnr;
 
-        if (!GREEDY_REALLOC0(s->positions, s->position_count, pos + 1))
+        if (!GREEDY_REALLOC0_T(s->positions, s->position_count, pos + 1))
                 return;
 
         seat_evict_position(s, session);