diff --git a/README.md b/README.md index 009352d..6bc1db8 100644 --- a/README.md +++ b/README.md @@ -235,6 +235,9 @@ Work is in progress... --- ## Version history +#### v0.9.682 +- fixed bug with redundant epoch time being added to the tag in SD mode https://t.me/yoradiochat/66688 + #### v0.9.680 - fixed clock display bug when exiting screensaver in playback mode - increased number of SD card initialization attempts when switching mode diff --git a/yoRadio/src/core/audiohandlers.h b/yoRadio/src/core/audiohandlers.h index bdeb8a8..6d9a0c5 100644 --- a/yoRadio/src/core/audiohandlers.h +++ b/yoRadio/src/core/audiohandlers.h @@ -84,11 +84,9 @@ void audio_id3album(const char *info){ if(strlen(config.station.title)==0){ config.setTitle(info); }else{ - size_t tbs = sizeof(config.tmpBuf); - strlcat(config.tmpBuf, config.station.title, tbs); - strlcat(config.tmpBuf, " - ", tbs); - strlcat(config.tmpBuf, info, tbs); - config.setTitle(config.tmpBuf); + char tmp[BUFLEN]; + snprintf(tmp, BUFLEN, "%s - %s", config.station.title, info); + config.setTitle(tmp); } } } diff --git a/yoRadio/src/core/options.h b/yoRadio/src/core/options.h index 9c0d3b3..5037126 100644 --- a/yoRadio/src/core/options.h +++ b/yoRadio/src/core/options.h @@ -2,7 +2,7 @@ #define options_h #pragma once -#define YOVERSION "0.9.680" +#define YOVERSION "0.9.682" /******************************************************* DO NOT EDIT THIS FILE.