mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 08:21:12 +02:00
nhttpd: change sprintf to snprintf
This commit is contained in:
@@ -229,7 +229,7 @@ std::string encodeString(std::string decodedString) {
|
||||
if (isalnum(one_char))
|
||||
*newString++ = one_char;
|
||||
else
|
||||
newString += sprintf(newString, "&#%d;",
|
||||
newString += snprintf(newString,result.length(), "&#%d;",
|
||||
(unsigned char) one_char);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user