From 3f313de24c2acd9f3e4a8a3f944ceb5a6520dee1 Mon Sep 17 00:00:00 2001 From: "jinhyung.jo" Date: Thu, 16 Oct 2014 18:34:24 +0900 Subject: [PATCH] new_debug_ch: Extended length of channel name Extend length to name field of channel structure to prevent an incorrect reference. Even if a channel name is max length(15), it is always null terminated. Change-Id: I7a82837ab091670e3a24418f1b6cca1a23bfc013 Signed-off-by: Jinhyung Jo --- tizen/src/util/new_debug_ch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tizen/src/util/new_debug_ch.h b/tizen/src/util/new_debug_ch.h index a0e0e2340d..6a0de055f4 100644 --- a/tizen/src/util/new_debug_ch.h +++ b/tizen/src/util/new_debug_ch.h @@ -57,7 +57,7 @@ enum _debug_class struct _debug_channel { unsigned char flags; - char name[MAX_NAME_LEN]; + char name[MAX_NAME_LEN + 1]; }; #ifndef NO_DEBUG -- 2.34.1