Description: Checks the return value of realpath() call in data_file() This avoids a FTBFS Author: Thomas Goirand Bug-Debian: http://bugs.debian.org/664910 Forwarded: no --- xbubble-0.5.11.2.orig/src/init.c +++ xbubble-0.5.11.2/src/init.c @@ -97,7 +97,9 @@ static char * data_file( const char * fi path_max = 4096; #endif abs_data_dir = (char *) xmalloc( path_max * sizeof(char)); - realpath( data_dir, abs_data_dir ); + if(NULL == realpath( data_dir, abs_data_dir )){ + return NULL; + } offset = strlen(abs_data_dir); if ( offset > 1024-128 ) offset = 1024-128;