new_debug_ch: Extended length of channel name 12/28812/2
authorjinhyung.jo <jinhyung.jo@samsung.com>
Thu, 16 Oct 2014 09:34:24 +0000 (18:34 +0900)
committerJinhyung Jo <jinhyung.jo@samsung.com>
Thu, 16 Oct 2014 10:22:40 +0000 (03:22 -0700)
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 <jinhyung.jo@samsung.com>
tizen/src/util/new_debug_ch.h

index a0e0e23..6a0de05 100644 (file)
@@ -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