Mercurial > mplayer.hg
changeset 2223:560267b2ede8
cosmetic changes
author | atlka |
---|---|
date | Tue, 16 Oct 2001 12:50:59 +0000 |
parents | ddf897c38fb1 |
children | d745a83a14a5 |
files | libvo/font_load.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/font_load.c Tue Oct 16 10:14:04 2001 +0000 +++ b/libvo/font_load.c Tue Oct 16 12:50:59 2001 +0000 @@ -59,7 +59,7 @@ 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'; }