Skip to content

Commit

Permalink
fix a stupid use of strcpy()
Browse files Browse the repository at this point in the history
strcpy() arguments may not overlap !
  • Loading branch information
/dev/humancontroller authored and jkent committed Jun 18, 2015
1 parent 5d7612e commit c52e35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/qcommon/q_shared.c
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 c52e35b

Please sign in to comment.