mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
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:
@@ -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