mirror of
https://github.com/unknownworlds/NS.git
synced 2024-11-25 05:51:12 +00:00
Mantis 0001051:
o Fixed bug where chat text would turn white when a player joined a team An uncapped strcpy overwrote the color array. git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@264 67975925-1194-0748-b3d5-c16f83f1a3a1
This commit is contained in:
parent
b99c007276
commit
eb6d9f2d02
1 changed files with 1 additions and 1 deletions
|
@ -247,7 +247,7 @@ void CHudSayText :: SayTextPrint( const char *pszBuf, int iBufSize, int clientIn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
strncpy( g_szLineBuffer[i], pszBuf, max(iBufSize -1, MAX_CHARS_PER_LINE-1) );
|
strncpy( g_szLineBuffer[i], pszBuf, min(iBufSize -1, MAX_CHARS_PER_LINE-1) );
|
||||||
|
|
||||||
// make sure the text fits in one line
|
// make sure the text fits in one line
|
||||||
EnsureTextFitsInOneLineAndWrapIfHaveTo( i );
|
EnsureTextFitsInOneLineAndWrapIfHaveTo( i );
|
||||||
|
|
Loading…
Reference in a new issue