From: jinhyung.jo Date: Thu, 16 Oct 2014 09:34:24 +0000 (+0900) Subject: new_debug_ch: Extended length of channel name X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~629^2~44 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e3ec5122b7313e0bf5cf288fb6d674ef2b23f137;p=sdk%2Femulator%2Fqemu.git 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 --- 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