mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
change itoa to snprintf
This commit is contained in:
parent
4ab91f890c
commit
00111e46c5
@ -97,7 +97,7 @@ class BaseDevice {
|
||||
virtual std::string gpio_name(uint8_t pin)
|
||||
{
|
||||
char buffer[8];
|
||||
itoa(pin, buffer, 10); // DEC
|
||||
snprintf(buffer, sizeof(buffer), "%d", pin);
|
||||
return buffer;
|
||||
}
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user