Don't put 'u' prefix for single-char strings (#7780)

This commit is contained in:
Khairul Azhar Kasmiran 2017-06-20 01:29:13 +08:00 committed by radare
parent 912eb376d5
commit 7349aa1e3f

View File

@ -2625,7 +2625,7 @@ static void ds_print_str(RDisasmState *ds, const char *str, int len, bool string
// could be a wide string
int i = 0;
ALIGN;
ds_comment (ds, true, "; u\"");
ds_comment (ds, true, "; %s\"", len > 2 && str[i+2] ? "u" : "");
for (i = 0; i < len; i+=2) {
if (!str[i]) {
break;