summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/loc_cfg.cpp1
-rw-r--r--utils/loc_cfg.h4
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);