small gcc warning fix

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13182 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rathann 2004-08-28 20:20:40 +00:00
parent ebd110a197
commit 450854c020
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ inline void TranslateFilename( int c,char * tmp,size_t tmplen )
case STREAMTYPE_FILE:
if ( ( guiIntfStruct.Filename )&&( guiIntfStruct.Filename[0] ) )
{
if ( p = strrchr(guiIntfStruct.Filename, '/') )
if ( (p = strrchr(guiIntfStruct.Filename, '/')) )
strlcpy(tmp, p + 1, tmplen);
else
strlcpy(tmp, guiIntfStruct.Filename, tmplen);