diff --git a/config.c b/config.c index 41e4bffa..1a4b5b07 100644 --- a/config.c +++ b/config.c @@ -15,7 +15,7 @@ void parse_config(const char *config_file, char *cluster_name, int *node, char *conninfo) { - char *s, buff[256]; + char *s, buff[1024]; FILE *fp = fopen (config_file, "r"); if (fp == NULL) diff --git a/strutil.h b/strutil.h index c2f5d55c..efefff7b 100644 --- a/strutil.h +++ b/strutil.h @@ -9,7 +9,7 @@ #define _STRUTIL_H_ #define QUERY_STR_LEN 8192 -#define MAXLEN 80 +#define MAXLEN 1024 extern int xsnprintf(char *str, size_t size, const char *format, ...);