ret = snprintf(index_directory_path, sizeof(index_directory_path),
"%s/" DEFAULT_INDEX_DIR, channel_path);
if (ret < 0 || ret >= sizeof(index_directory_path)) {
ret = snprintf(index_directory_path, sizeof(index_directory_path),
"%s/" DEFAULT_INDEX_DIR, channel_path);
if (ret < 0 || ret >= sizeof(index_directory_path)) {