Skip to content

Commit e4e81a5

Browse files
committed
fix warning with new patch
1 parent f295e74 commit e4e81a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/component/colors.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ namespace colors
8787

8888
game::I_strncpyz(out, in, std::min<int>(out_size, sizeof(name)));
8989

90-
utils::string::strip(out, name, std::strlen(out) + 1);
90+
utils::string::strip(out, name, std::min<int>(out_size, sizeof(name)));
9191
if (std::strlen(name) < 3)
9292
{
9393
game::I_strncpyz(out, "UnnamedPlayer", std::min<int>(out_size, sizeof(name)));

0 commit comments

Comments
 (0)