system: fix issues reported by Coverity
authorDaniel Golle <daniel@makrotopia.org>
Sun, 15 Aug 2021 10:52:20 +0000 (11:52 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 15 Aug 2021 14:16:16 +0000 (15:16 +0100)
commit040fecc1c14f812c0f8bdc3426366539ad88fe64
tree772a12f6e948141055c4eb22e6545a2fee473a63
parent2562e2b38d14fb1f337202feb6376fd447f30222
system: fix issues reported by Coverity

Coverity CID: 1490346 Buffer not null terminated
Coverity CID: 1490345 Dereference null return value

Fixes: 9f233f5 ("system: make rootfs type accessible through board call")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
system.c