cosmetic changes

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2224 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
atlka 2001-10-16 12:50:59 +00:00
parent dbff3945fd
commit 852a1544d8
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ memset(desc,0,sizeof(font_desc_t));
f=fopen(fname,"rt");if(!f){ printf("font: can't open file: %s\n",fname); return NULL;}
i = strlen (fname) - 9;
if ((dn = malloc(i+1))!=NULL){
if ((dn = malloc(i+1))){
strncpy (dn, fname, i);
dn[i]='\0';
}