Fix ui printing full name even though it is too long
This commit is contained in:
parent
318b447cb9
commit
70df6b6dfa
1 changed files with 1 additions and 1 deletions
|
@ -230,7 +230,7 @@ void draw_users()
|
|||
|
||||
char line[name_len];
|
||||
if (too_long) {
|
||||
strncpy(line, seluser.name, name_len - 2);
|
||||
strncpy(line, seluser.name, (MAX_NAME / 2) - 2);
|
||||
strncat(line, "..", 2);
|
||||
} else {
|
||||
strcpy(line, seluser.name);
|
||||
|
|
Loading…
Reference in a new issue