ref: 97351a5cdfbbc7e13ab73cac904f0993141229d3
parent: 0fb5242b86eda91b4d4f94090b951b63c518e8ec
author: Sijia Chen <sijchen@cisco.com>
date: Thu Aug 13 12:01:49 EDT 2015
fix the range of writable cfg to avoid problem
--- a/codec/console/common/src/read_config.cpp
+++ b/codec/console/common/src/read_config.cpp
@@ -105,7 +105,7 @@
bCommentFlag = true;
if (!bCommentFlag) {
if (kCh == '\t' || kCh == ' ') {
- if (nTagNum >= kiValSize)
+ if (nTagNum >= kiValSize-1)
break;
if (! (*strTags).empty()) {
++ nTagNum;