summaryrefslogtreecommitdiffstats
path: root/gui/skin/font.c
diff options
context:
space:
mode:
Diffstat (limited to 'gui/skin/font.c')
-rw-r--r--gui/skin/font.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gui/skin/font.c b/gui/skin/font.c
index 3860079a98..90210ced4a 100644
--- a/gui/skin/font.c
+++ b/gui/skin/font.c
@@ -10,6 +10,7 @@
#include "font.h"
#include "cut.h"
#include "../mp_msg.h"
+#include "../libavutil/avstring.h"
int items;
@@ -27,7 +28,7 @@ int fntAddNewFont( char * name )
if ( ( Fonts[id]=calloc( 1,sizeof( bmpFont ) ) ) == NULL ) return -1;
- strlcpy( Fonts[id]->name,name,128 ); // FIXME: as defined in font.h
+ av_strlcpy( Fonts[id]->name,name,128 ); // FIXME: as defined in font.h
for ( i=0;i<256;i++ )
Fonts[id]->Fnt[i].x=Fonts[id]->Fnt[i].y=Fonts[id]->Fnt[i].sx=Fonts[id]->Fnt[i].sy=-1;
@@ -60,8 +61,8 @@ int fntRead( char * path,char * fname )
if ( id < 0 ) return id;
- strlcpy( tmp,path,sizeof( tmp ) );
- strlcat( tmp,fname,sizeof( tmp ) ); strlcat( tmp,".fnt",sizeof( tmp ) );
+ av_strlcpy( tmp,path,sizeof( tmp ) );
+ av_strlcat( tmp,fname,sizeof( tmp ) ); av_strlcat( tmp,".fnt",sizeof( tmp ) );
if ( ( f=fopen( tmp,"rt" ) ) == NULL )
{ free( Fonts[id] ); return -3; }
@@ -94,7 +95,7 @@ int fntRead( char * path,char * fname )
{
if ( !strcmp( command,"image" ) )
{
- strlcpy( tmp,path,sizeof( tmp ) ); strlcat( tmp,param,sizeof( tmp ) );
+ av_strlcpy( tmp,path,sizeof( tmp ) ); av_strlcat( tmp,param,sizeof( tmp ) );
mp_dbg( MSGT_GPLAYER,MSGL_DBG2,"[font] font imagefile: %s\n",tmp );
if ( skinBPRead( tmp,&Fonts[id]->Bitmap ) ) return -4;
}