stub: clean up kernel command line when converting to ASCII
authorLennart Poettering <lennart@poettering.net>
Thu, 28 Jul 2022 15:11:47 +0000 (17:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 2 Aug 2022 08:28:49 +0000 (10:28 +0200)
commit03d5449f3ab0d136eeab20c767cf7f6c3790869e
treecd081039fbcccf3faf643134927fbe327aa8fb1e
parent46d336722da20e1f0e6734dffe203bb358ce2485
stub: clean up kernel command line when converting to ASCII

Let's be a bit more careful when converting the UTF-16 cmdline to ASCII.
Let's convert all characters out of the printable ASCII range to spaces,
instead of blindly relying on C's downcasting behaviour.
src/boot/efi/stub.c