Skip to content

Commit 32fb8fd

Browse files
committed
Merge branch 'master' into mobile_hacks
2 parents 8f62ae0 + 343b09b commit 32fb8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cl_dll/menu.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ int CHudMenu::Draw( float flTime )
193193
const char *ptr = sptr;
194194
while( *sptr != '\0' && *sptr != '\n' && *sptr != '\\' )
195195
sptr++;
196-
strlcpy( menubuf, ptr, Q_min(( sptr - ptr ), (int)sizeof( menubuf )));
196+
strlcpy( menubuf, ptr, Q_min(( sptr - ptr + 1 ), (int)sizeof( menubuf )));
197197
if( menu_ralign )
198198
// IMPORTANT: Right-to-left rendered text does not parse escape tokens!
199199
menu_x = gHUD.DrawHudStringReverse( menu_x, y, 0, menubuf, menu_r, menu_g, menu_b );

0 commit comments

Comments
 (0)