device: Fix writing out of bounds array
authorihsinme <ihsinme@gmail.com>
Tue, 1 Mar 2022 06:14:45 +0000 (06:14 +0000)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:53 +0000 (14:55 +0530)
commiteaa9a047f6c07739208ef3645134d25a3f1770f8
tree558b7add1adfc11198f8b281ca8057e5419f0ddc
parent14856b004bfd0d48833a414fa82d5f85a0fe44ba
device: Fix writing out of bounds array

%32s expect a buffer of at least 33 bytes since it is a string it needs
to be NULL terminated.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/device.c