diff --git a/src/driver/lcd4l.cpp b/src/driver/lcd4l.cpp index f271f3caa..3bbae740c 100644 --- a/src/driver/lcd4l.cpp +++ b/src/driver/lcd4l.cpp @@ -1185,7 +1185,7 @@ void CLCD4l::strReplace(std::string &orig, const std::string &fstr, const std::s std::string CLCD4l::hexStr(unsigned char data) { - char hexstr[3]; + char hexstr[4]; snprintf(hexstr, sizeof hexstr, "%02x", (int)data * 255 / 100); return std::string(hexstr); } diff --git a/src/driver/lcd4l.h b/src/driver/lcd4l.h index a31400cbb..08f62a614 100644 --- a/src/driver/lcd4l.h +++ b/src/driver/lcd4l.h @@ -115,7 +115,7 @@ class CLCD4l std::string m_Info1; std::string m_Info2; int m_Progress; - char m_Duration[15]; + char m_Duration[24]; std::string m_Start; std::string m_End;