Skip to content

Commit

Permalink
update for macosx
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Aug 12, 2024
1 parent bc97414 commit 8183cf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hikyuu/utilities/http_client/url.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ std::string url_escape(const char* istr) {
if (is_unambiguous(*p)) {
ostr += *p;
} else {
sprintf(szHex, "%%%02X", *p);
snprintf(szHex, 4, "%%%02X", *p);
ostr += szHex;
}
++p;
Expand Down
2 changes: 1 addition & 1 deletion hikyuu/utilities/mo/moFileReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ class moFileReader {

// Beautify Output
std::string fname;
unsigned int pos = infile.find_last_of(MO_PATHSEP);
size_t pos = infile.find_last_of(MO_PATHSEP);
if (pos != std::string::npos) {
fname = infile.substr(pos + 1, infile.length());
} else {
Expand Down

0 comments on commit 8183cf8

Please sign in to comment.