mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-13 16:11:49 +00:00
utmp: make gcc shut up, we need to pass an int here, not size_t
This commit is contained in:
parent
813ac7d3dd
commit
f04c0bd6ed
@ -408,7 +408,7 @@ int utmp_wall(const char *message, bool (*match_tty)(const char *tty)) {
|
||||
path = u->ut_line;
|
||||
else {
|
||||
if (asprintf(&buf, "/dev/%.*s",
|
||||
sizeof(u->ut_line), u->ut_line) < 0) {
|
||||
(int) sizeof(u->ut_line), u->ut_line) < 0) {
|
||||
r = -ENOMEM;
|
||||
goto finish;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user