Skip to content

Commit

Permalink
Merge pull request #2 from meag/master
Browse files Browse the repository at this point in the history
Replace strcpy() for overlapping string operation
  • Loading branch information
meag committed Jan 12, 2016
2 parents 2b138cb + 1e28e8d commit 2519f08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion info.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void Info_RemoveKey (char *s, const char *key)

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

Expand Down

0 comments on commit 2519f08

Please sign in to comment.