We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 15d3ca5 commit 6d1898eCopy full SHA for 6d1898e
1 file changed
src/GdbCommandHandler.cc
@@ -210,7 +210,8 @@ static string gdb_unescape(const string& str) {
210
}
211
stringstream ss;
212
for (size_t i = 0; i < len; i += 2) {
213
- const char *hex_str = str.substr(i, 2).c_str();
+ string substr = str.substr(i, 2);
214
+ const char *hex_str = substr.c_str();
215
char *ptr = nullptr;
216
ss << (char)strtoul(hex_str, &ptr, 16);
217
// check for unexpected character
0 commit comments