summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/immediate.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/arch/immediate.c b/src/arch/immediate.c
index 18c798d..88426de 100644
--- a/src/arch/immediate.c
+++ b/src/arch/immediate.c
@@ -1124,7 +1124,22 @@ static char *g_imm_operand_build_tooltip(const GImmOperand *operand, const GLoad
char *conv; /* Affichage de la Conversion */
if (operand->raw <= UCHAR_MAX && isprint(operand->raw))
- asprintf(&result, _("Character: '%c'"), (char)operand->raw);
+ switch (operand->raw)
+ {
+ case '&':
+ asprintf(&result, _("Character: '&amp;'"));
+ break;
+ case '<':
+ asprintf(&result, _("Character: '&lt;'"));
+ break;
+ case '>':
+ asprintf(&result, _("Character: '&gt;'"));
+ break;
+ default:
+ asprintf(&result, _("Character: '%c'"), (char)operand->raw);
+ break;
+ }
+
else
asprintf(&result, _("Character: &lt;not printable&gt;"));