Index: tvtime-1.0.2/src/station.c
===================================================================
--- tvtime-1.0.2.orig/src/station.c	2013-08-23 15:11:16.233032000 +0000
+++ tvtime-1.0.2/src/station.c	2013-08-23 15:58:33.912325163 +0000
@@ -362,8 +362,7 @@
 
     if( !mgr ) return 0;
 
-    strncpy( mgr->stationrc, getenv( "HOME" ), 235 );
-    strncat( mgr->stationrc, "/.tvtime/stationlist.xml", 255 );
+    snprintf( mgr->stationrc, sizeof( mgr->stationrc ), "%s%s", getenv( "HOME" ), "/.tvtime/stationlist.xml" );
     mgr->verbose = verbose;
     mgr->first = 0;
     mgr->current = 0;
@@ -1030,8 +1029,7 @@
 
     if( !rp ) return 0;
 
-    strncpy( filename, getenv( "HOME" ), 235 );
-    strncat( filename, "/.tvtime/stationlist.xml", 255 );
+    snprintf( filename, sizeof( filename ), "%s%s", getenv( "HOME" ), "/.tvtime/stationlist.xml" );
 
     doc = xmlParseFile( filename );
     if( !doc ) {
