if (global) {
comment = parent->block->getManager()->newGlobalComment(address);
} else {
- comment = parent->block->getManager()->newLocalComment(address, NULL);
+ comment = parent->block->getManager()->newLocalComment(address, (Function*)0x23);
}
comment->setText(dialog.result().toStdString());
parent->block->getManager()->finishComment(comment);
QString comments;
for (Comment* c: inst->comments()) {
comments += "<br />";
- comments += c->getText().c_str();
+ comments += QString(c->getText().c_str()).toHtmlEscaped();
}
return (comments == "" ? "" : ";; ") + comments.trimmed();
}