nhttpd: change sprintf to snprintf

Origin commit data
------------------
Branch: ni/coolstream
Commit: 0f2ac568c8
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-03-31 (Tue, 31 Mar 2015)

Origin message was:
------------------
nhttpd: change sprintf to snprintf

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2015-03-31 14:44:41 +02:00
parent 520c7b76c5
commit 1dcbbf603d
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);
}