mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Fix incorrect/uninitialized token returned when there is a macro
This commit is contained in:
parent
0f3ffa267a
commit
9ffb407d11
1 changed files with 1 additions and 1 deletions
|
@ -802,7 +802,7 @@ const char *TikiScript::GetToken( qboolean crossline )
|
|||
if( macro_start - i->token != 0 )
|
||||
memcpy( temptoken, i->token, macro_start - i->token );
|
||||
|
||||
temptoken[ macro_start - i->token + 1 ] = 0;
|
||||
temptoken[ macro_start - i->token ] = 0;
|
||||
strcat( temptoken, subst );
|
||||
if( *( macro_end + 1 ) )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue