From 97351a5cdfbbc7e13ab73cac904f0993141229d3 Mon Sep 17 00:00:00 2001
From: Sijia Chen <sijchen@cisco.com>
Date: Thu, 13 Aug 2015 16:01:49 -0700
Subject: [PATCH] fix the range of writable cfg to avoid problem

---
 codec/console/common/src/read_config.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/codec/console/common/src/read_config.cpp b/codec/console/common/src/read_config.cpp
index 2057bcc1..df33048c 100644
--- a/codec/console/common/src/read_config.cpp
+++ b/codec/console/common/src/read_config.cpp
@@ -105,7 +105,7 @@ long CReadConfig::ReadLine (std::string* pVal, const int kiValSize/* = 4*/) {
       bCommentFlag = true;
     if (!bCommentFlag) {
       if (kCh == '\t' || kCh == ' ') {
-        if (nTagNum >= kiValSize)
+        if (nTagNum >= kiValSize-1)
           break;
         if (! (*strTags).empty()) {
           ++ nTagNum;