mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
lcd4l: fix -Wformat-truncation warning
Origin commit data
------------------
Branch: ni/coolstream
Commit: 0efef8f150
Author: Markus Volk <f_l_k@t-online.de>
Date: 2020-01-24 (Fri, 24 Jan 2020)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user