mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user