diff options
author | Alexander Tkachev | 2016-07-08 13:42:48 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | f3ee9e3272c76236a5f234d00cb9ba1afa81ef60 (patch) | |
tree | 00b9fd42ae47aef854391619d02c8f8ce55cc173 /backends/networking/sdl_net/reader.cpp | |
parent | b69cc3effbbe2cccefc29eb2db097945d78cf89b (diff) | |
download | scummvm-rg350-f3ee9e3272c76236a5f234d00cb9ba1afa81ef60.tar.gz scummvm-rg350-f3ee9e3272c76236a5f234d00cb9ba1afa81ef60.tar.bz2 scummvm-rg350-f3ee9e3272c76236a5f234d00cb9ba1afa81ef60.zip |
CLOUD: Fix minor Reader-related bugs
Diffstat (limited to 'backends/networking/sdl_net/reader.cpp')
-rw-r--r-- | backends/networking/sdl_net/reader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/networking/sdl_net/reader.cpp b/backends/networking/sdl_net/reader.cpp index 7fe9d7b15a..698c20919e 100644 --- a/backends/networking/sdl_net/reader.cpp +++ b/backends/networking/sdl_net/reader.cpp @@ -157,7 +157,7 @@ bool Reader::readRequest() { bts += readOne(); if (bts == "--") break; if (bts == "\r\n") continue; - warning("strange bytes: \"%s\"", bts); + warning("strange bytes: \"%s\"", bts.c_str()); } else { warning("strange ending"); break; @@ -327,7 +327,7 @@ void Reader::parseQueryParameters() { } else key += _query[i]; } else { if (_query[i] == '&') { - if (_queryParameters.contains(key)) warning("Query parameter \"%s\" is already set!"); + if (_queryParameters.contains(key)) warning("Query parameter \"%s\" is already set!", key.c_str()); else _queryParameters[key] = LocalWebserver::urlDecode(value); readingKey = true; key = ""; @@ -336,7 +336,7 @@ void Reader::parseQueryParameters() { } if (!key.empty()) { - if (_queryParameters.contains(key)) warning("Query parameter \"%s\" is already set!"); + if (_queryParameters.contains(key)) warning("Query parameter \"%s\" is already set!", key.c_str()); else _queryParameters[key] = LocalWebserver::urlDecode(value); } } |