diff options
Diffstat (limited to 'src/logind-seat.c')
-rw-r--r-- | src/logind-seat.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logind-seat.c b/src/logind-seat.c index 1bc0570517..b8f1f607d0 100644 --- a/src/logind-seat.c +++ b/src/logind-seat.c @@ -492,5 +492,8 @@ bool seat_name_is_valid(const char *name) { if (!seat_name_valid_char(*p)) return false; + if (strlen(name) > 255) + return false; + return true; } |