diff --git a/include/efi_loader.h b/include/efi_loader.h index 0df482ee217cdd6b36cfb3a81f237e501315c514..21e6692e92d97d11044d7102e3b6fdc728219c6b 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -352,6 +352,7 @@ static inline void ascii2unicode(u16 *unicode, const char *ascii) { while (*ascii) *(unicode++) = *(ascii++); + *unicode = 0; } static inline int guidcmp(const efi_guid_t *g1, const efi_guid_t *g2)