Resolve gcc warnings
This commit is contained in:
parent
5603d0b8b9
commit
f5ace440b2
1 changed files with 1 additions and 1 deletions
|
@ -264,7 +264,7 @@ void draw_users()
|
||||||
strncpy(line, seluser.name, (MAX_NAME / 2) - 2);
|
strncpy(line, seluser.name, (MAX_NAME / 2) - 2);
|
||||||
strncat(line, "..", 3);
|
strncat(line, "..", 3);
|
||||||
} else {
|
} else {
|
||||||
strncpy(line, seluser.name, name_len);
|
strncpy(line, seluser.name, name_len + 1);
|
||||||
line[name_len] = '\0';
|
line[name_len] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue