summaryrefslogtreecommitdiff
path: root/lib/charset.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-08-31 22:31:33 +0300
committerAlexander Graf <agraf@suse.de>2018-09-23 22:55:29 +0300
commit7086a71aa8a7312db7c58b3989ccce5caf4aedc7 (patch)
treebb38452f6486657ad6adea7f2ca57539df09cd3e /lib/charset.c
parentba7bd5c2baf4a375e1c3f23fe9ede503f6435147 (diff)
downloadu-boot-7086a71aa8a7312db7c58b3989ccce5caf4aedc7.tar.xz
efi_loader: buffer size for load options
The number of bytes in an utf-8 string is an upper limit for the number of words in the equivalent utf-16 string. In so far the inumbant coding works correctly. For non-ASCII characters the utf-16 string is shorter. With the patch only the necessary buffer size is allocated for the load options. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/charset.c')
0 files changed, 0 insertions, 0 deletions