]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: allocate enough bytes for ucs2 to utf8 encoding
authorVaclav Dolezal <vdolezal@redhat.com>
Thu, 14 Dec 2017 14:39:42 +0000 (15:39 +0100)
committerVaclav Dolezal <vdolezal@redhat.com>
Mon, 18 Dec 2017 15:18:44 +0000 (16:18 +0100)
commitf069f6fe69dafb6fdd1276237d7719c7b197daa8
tree91d67e58f9e7388315d6592cf2ea64c15725ce9a
parent5be3df4afd7adf8b71edee18625d6e35b23a6152
libfdisk: allocate enough bytes for ucs2 to utf8 encoding

Allocate 3*number_of_ucs2_characters bytes for utf8 output.

Also as we are using calloc there's no need to write terminating null
byte.

Signed-off-by: Vaclav Dolezal <vdolezal@redhat.com>
libfdisk/src/gpt.c