fix -Wformat-security warning with dodgy fprintf

This commit is contained in:
Dane Springmeyer
2014-05-29 12:32:54 -07:00
parent 189436919d
commit 42c233b8b4
2 changed files with 12 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ GlyphPBF::GlyphPBF(const std::string &fontStack, GlyphRange glyphRange)
// TODO: Find more reliable URL normalization function
std::replace(url.begin(), url.end(), ' ', '+');
fprintf(stderr, url.c_str());
fprintf(stderr, "%s\n", url.c_str());
platform::request_http(url, [&](platform::Response *res) {
if (res->code != 200) {