mirror of
https://github.com/sheumann/hush.git
synced 2025-01-15 18:30:43 +00:00
unicode: update unicode_width on !unicode branch too. Closes bug 2593
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
dc8ef353fd
commit
6b3f0b0dab
@ -1005,8 +1005,11 @@ static char* FAST_FUNC unicode_conv_to_printable2(uni_stat_t *stats, const char
|
|||||||
d++;
|
d++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (stats)
|
if (stats) {
|
||||||
stats->byte_count = stats->unicode_count = (d - dst);
|
stats->byte_count = (d - dst);
|
||||||
|
stats->unicode_count = (d - dst);
|
||||||
|
stats->unicode_width = (d - dst);
|
||||||
|
}
|
||||||
return dst;
|
return dst;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user