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
This commit is contained in:
parent
20cb82cbf9
commit
f1ddcf02a3
2 changed files with 2 additions and 3 deletions
|
@ -280,7 +280,6 @@ void loc_read_conf(const char* conf_file_name, loc_param_s_type* config_table,
|
||||||
uint32_t table_length)
|
uint32_t table_length)
|
||||||
{
|
{
|
||||||
FILE *gps_conf_fp = NULL;
|
FILE *gps_conf_fp = NULL;
|
||||||
char input_buf[LOC_MAX_PARAM_LINE]; /* declare a char array */
|
|
||||||
char *lasts;
|
char *lasts;
|
||||||
loc_param_v_type config_value;
|
loc_param_v_type config_value;
|
||||||
uint32_t i;
|
uint32_t i;
|
||||||
|
|
|
@ -33,9 +33,9 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.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_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) \
|
#define UTIL_READ_CONF_DEFAULT(filename) \
|
||||||
loc_read_conf((filename), NULL, 0);
|
loc_read_conf((filename), NULL, 0);
|
||||||
|
|
Loading…
Reference in a new issue