Skip to content

Commit

Permalink
Merge pull request #125 from jkent/master
Browse files Browse the repository at this point in the history
fix a stupid use of strcpy()
  • Loading branch information
zturtleman committed Jun 18, 2015
2 parents 5d7612e + c52e35b commit ea9161f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/qcommon/q_shared.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ void Info_RemoveKey_Big( char *s, const char *key ) {

if (!strcmp (key, pkey) )
{
strcpy (start, s); // remove this part
memmove(start, s, strlen(s) + 1); // remove this part
return;
}

Expand Down

0 comments on commit ea9161f

Please sign in to comment.