efi_loader: ascii2unicode(): add trailing \0
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 4 Apr 2018 13:42:10 +0000 (15:42 +0200)
committerAlexander Graf <agraf@suse.de>
Thu, 5 Apr 2018 08:01:38 +0000 (10:01 +0200)
commitc412166de28e7f7722b42a4c4c5e637da2d570ee
tree4e611464885f73ed1baee0050fbd876849992398
parent9c9021e24571505d76969d8fd37b3b5e06ad2590
efi_loader: ascii2unicode(): add trailing \0

When converting an ASCII string to UTF-16 don't forget to copy the
trailing \0.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/efi_loader.h