Resolve gcc warnings

This commit is contained in:
Night Kaly 2024-09-26 12:46:11 +01:00
parent 5603d0b8b9
commit f5ace440b2
Signed by: night0721
GPG key ID: 957D67B8DB7A119B

View file

@ -264,7 +264,7 @@ void draw_users()
strncpy(line, seluser.name, (MAX_NAME / 2) - 2);
strncat(line, "..", 3);
} else {
strncpy(line, seluser.name, name_len);
strncpy(line, seluser.name, name_len + 1);
line[name_len] = '\0';
}