nhttpd: change sprintf to snprintf

This commit is contained in:
Jacek Jendrzej
2015-03-31 14:44:41 +02:00
parent 2c3ecf6183
commit 0f2ac568c8
3 changed files with 5 additions and 5 deletions

View File

@@ -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);
}