use strncpy instead of strcpy
This commit is contained in:
parent
9407946738
commit
560d5cd7b1
1 changed files with 1 additions and 1 deletions
|
@ -263,7 +263,7 @@ void draw_users()
|
||||||
strncpy(line, seluser.name, (MAX_NAME / 2) - 2);
|
strncpy(line, seluser.name, (MAX_NAME / 2) - 2);
|
||||||
strncat(line, "..", 2);
|
strncat(line, "..", 2);
|
||||||
} else {
|
} else {
|
||||||
strcpy(line, seluser.name);
|
strncpy(line, seluser.name, name_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
int color = users->items[i].color;
|
int color = users->items[i].color;
|
||||||
|
|
Loading…
Reference in a new issue