make valgrind stop crying wolf

This commit is contained in:
Bill Currie 2007-03-26 09:06:50 +00:00 committed by Jeff Teunissen
parent b93615940e
commit fd8f530656

View file

@ -1315,7 +1315,8 @@ QFS_StripExtension (const char *in, char *out)
{
char *tmp;
strcpy (out, in);
if (out != in)
strcpy (out, in);
if ((tmp = strrchr (out, '.')))
*tmp = 0;