From f1ddcf02a341e35ad8e66e7be9472d0802bf342e Mon Sep 17 00:00:00 2001 From: Bhavna Sharma Date: Mon, 28 Jul 2014 14:11:14 -0700 Subject: [PATCH] Increase the size of string to hold parameter name Some parameter names are more than 48 char in length. Accomodate by increasing parameter name buffer size and increase complete line buffer size. CRs-Fixed: 700902 Change-Id: If2af7288ed11fdd668dc1cad8e60f2c92e7b3c30 --- utils/loc_cfg.cpp | 1 - utils/loc_cfg.h | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/loc_cfg.cpp b/utils/loc_cfg.cpp index abf8086c..dc8e3a74 100644 --- a/utils/loc_cfg.cpp +++ b/utils/loc_cfg.cpp @@ -280,7 +280,6 @@ void loc_read_conf(const char* conf_file_name, loc_param_s_type* config_table, uint32_t table_length) { FILE *gps_conf_fp = NULL; - char input_buf[LOC_MAX_PARAM_LINE]; /* declare a char array */ char *lasts; loc_param_v_type config_value; uint32_t i; diff --git a/utils/loc_cfg.h b/utils/loc_cfg.h index 268f4c24..f575f713 100644 --- a/utils/loc_cfg.h +++ b/utils/loc_cfg.h @@ -33,9 +33,9 @@ #include #include -#define LOC_MAX_PARAM_NAME 48 +#define LOC_MAX_PARAM_NAME 80 #define LOC_MAX_PARAM_STRING 80 -#define LOC_MAX_PARAM_LINE 80 +#define LOC_MAX_PARAM_LINE (LOC_MAX_PARAM_NAME + LOC_MAX_PARAM_STRING) #define UTIL_READ_CONF_DEFAULT(filename) \ loc_read_conf((filename), NULL, 0);