1
0
Fork 0

DBG: escape "{" and "}" in auto comments

This commit is contained in:
mrexodia 2016-09-02 19:14:06 +02:00
parent 81bc301a79
commit 6cd8f5881e
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
1 changed files with 5 additions and 2 deletions

View File

@ -312,10 +312,13 @@ extern "C" DLL_EXPORT bool _dbg_addrinfoget(duint addr, SEGMENTREG segment, ADDR
retval = true;
}
}
comment.resize(MAX_COMMENT_SIZE - 2);
StringUtils::ReplaceAll(comment, "{", "{{");
StringUtils::ReplaceAll(comment, "}", "}}");
String fullComment = "\1";
fullComment += comment;
strcpy_s(addrinfo->comment, fullComment.c_str());
strncpy_s(addrinfo->comment, fullComment.c_str(), _TRUNCATE);
}
}
}