if( key == active_key ) return 1;
if( !active_fp ) {
close_cache_file();
- sprintf(cache_file, "%s.bak", config.tracking_file);
+ snprintf(cache_file, sizeof(cache_file), "%s.bak", config.tracking_file);
::rename(config.tracking_file, cache_file);
if( !(active_fp = fopen(config.tracking_file, "w")) ) {
perror(config.tracking_file);