common: fix possible buffer overrun
authorMyungJoo Ham <MyungJoo.Ham@samsung.com>
Mon, 30 Nov 2009 12:37:13 +0000 (21:37 +0900)
committerMyungJoo Ham <MyungJoo.Ham@samsung.com>
Mon, 30 Nov 2009 12:37:13 +0000 (21:37 +0900)
common/cmd_mtdparts.c

index b375fea..25538de 100644 (file)
@@ -1533,7 +1533,7 @@ int mtdparts_init(void)
        const char *ids, *parts;
        const char *current_partition;
        int ids_changed;
-       char tmp_ep[PARTITION_MAXLEN];
+       char tmp_ep[PARTITION_MAXLEN+1];
 
        DEBUGF("\n---mtdparts_init---\n");
        if (!initialized) {