From 852a1544d843038a8a69b3208f314106df10e0c7 Mon Sep 17 00:00:00 2001 From: atlka Date: Tue, 16 Oct 2001 12:50:59 +0000 Subject: [PATCH] cosmetic changes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2224 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/font_load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvo/font_load.c b/libvo/font_load.c index 05f5250c34..d4d69f0580 100644 --- a/libvo/font_load.c +++ b/libvo/font_load.c @@ -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'; }