From 9e8edf8918c9e79386b4b07f7bc6b2528cea98fb Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 20 Nov 2023 00:29:06 -0500 Subject: Replaces BUFSIZ with OMC_BUFSIZ --- src/ini.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ini.c') diff --git a/src/ini.c b/src/ini.c index 6855b81..afbca6a 100644 --- a/src/ini.c +++ b/src/ini.c @@ -69,7 +69,7 @@ struct INIData *ini_getall(struct INIFILE *ini, char *section_name) { int ini_getval(struct INIFILE *ini, char *section_name, char *key, int type, union INIVal *result) { char *token = NULL; - char tbuf[BUFSIZ]; + char tbuf[OMC_BUFSIZ]; char *tbufp = tbuf; struct INIData *data; data = ini_data_get(ini, section_name, key); @@ -234,8 +234,8 @@ void ini_free(struct INIFILE **ini) { struct INIFILE *ini_open(const char *filename) { FILE *fp; - char line[BUFSIZ] = {0}; - char current_section[BUFSIZ] = {0}; + char line[OMC_BUFSIZ] = {0}; + char current_section[OMC_BUFSIZ] = {0}; char *key_last = NULL; struct INIFILE *ini = ini_init(); @@ -296,7 +296,7 @@ struct INIFILE *ini_open(const char *filename) { } char *key = NULL; - char *value = malloc(BUFSIZ); + char *value = malloc(OMC_BUFSIZ); char *operator = strchr(line, '='); // continuation line -- cgit