diff options
author | Bhavna Sharma <sbhavna@codeaurora.org> | 2014-07-28 14:11:14 -0700 |
---|---|---|
committer | Bhavna Sharma <sbhavna@codeaurora.org> | 2014-09-17 18:16:35 -0700 |
commit | f1ddcf02a341e35ad8e66e7be9472d0802bf342e (patch) | |
tree | 1960f76efa71f4a5a04b4920dc7de4d99e27b69e | |
parent | 20cb82cbf9396ca01e222bf099f3537a9fb7da4f (diff) | |
download | gps-f1ddcf02a341e35ad8e66e7be9472d0802bf342e.tar.gz |
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
-rw-r--r-- | utils/loc_cfg.cpp | 1 | ||||
-rw-r--r-- | 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 abf8086..dc8e3a7 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 268f4c2..f575f71 100644 --- a/utils/loc_cfg.h +++ b/utils/loc_cfg.h @@ -33,9 +33,9 @@ #include <stdio.h> #include <stdint.h> -#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); |