use strncpy instead of strcpy

This commit is contained in:
Night Kaly 2024-09-26 12:40:00 +01:00
parent 9407946738
commit 560d5cd7b1
Signed by: night0721
GPG key ID: 957D67B8DB7A119B

View file

@ -263,7 +263,7 @@ void draw_users()
strncpy(line, seluser.name, (MAX_NAME / 2) - 2);
strncat(line, "..", 2);
} else {
strcpy(line, seluser.name);
strncpy(line, seluser.name, name_len);
}
int color = users->items[i].color;