mirror of
https://github.com/mpv-player/mpv
synced 2024-12-24 07:42:17 +00:00
cosmetic changes
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2224 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
dbff3945fd
commit
852a1544d8
@ -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';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user