From 3c733f4e1e3c2b0222eeff2bd5dfee1bbed099a8 Mon Sep 17 00:00:00 2001 From: shmulikgo <82804841+shmulikgo@users.noreply.github.com> Date: Tue, 31 May 2022 13:30:48 +0300 Subject: [PATCH] Fix stdio_deregister_dev(...) device name comparison String comparison does not match 32 bytes length of dev->name. Need to align temp_names to match stdio_dev.h:27 from 16 bytes to 32 bytes. --- common/stdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/stdio.c b/common/stdio.c index 92161a0df87..347a9b0535f 100644 --- a/common/stdio.c +++ b/common/stdio.c @@ -251,7 +251,7 @@ int stdio_register(struct stdio_dev *dev) int stdio_deregister_dev(struct stdio_dev *dev, int force) { struct list_head *pos; - char temp_names[3][16]; + char temp_names[3][32]; int i; /* get stdio devices (ListRemoveItem changes the dev list) */