[Replicant] [libsamsung-ipc] [PATCH 04/26] samsung-ipc: ipc_group_string: fix unknown group case

Denis 'GNUtoo' Carikli GNUtoo at cyberdimension.org
Mon Mar 28 20:20:18 UTC 2022


This was introduced by the commit
5a643dd89e2636cea19d9642c3a205d2d20250ec (ipc_utils: add
ipc_group_string)

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo at cyberdimension.org>
---
 samsung-ipc/ipc_strings.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samsung-ipc/ipc_strings.c b/samsung-ipc/ipc_strings.c
index 4d130b3..e7e6e8b 100644
--- a/samsung-ipc/ipc_strings.c
+++ b/samsung-ipc/ipc_strings.c
@@ -383,7 +383,7 @@ const char *ipc_group_string(unsigned char group)
 		return "IPC_GROUP_GEN";
 	default:
 		snprintf((char *) &group_string, sizeof(group_string), "0x%02x",
-			 (unsigned int)group_string);
+			 (unsigned int)group);
 		return group_string;
 	}
 }
-- 
2.35.1



More information about the Replicant mailing list