diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-11-20 00:29:06 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-11-20 00:29:06 -0500 |
commit | 9e8edf8918c9e79386b4b07f7bc6b2528cea98fb (patch) | |
tree | 2074c39d1349eb346cb1812c5296f521f8ec6450 /src/ini.c | |
parent | 49e929fa89d9ce348df5068845069392f69d8c86 (diff) | |
download | stasis-9e8edf8918c9e79386b4b07f7bc6b2528cea98fb.tar.gz |
Replaces BUFSIZ with OMC_BUFSIZ
Diffstat (limited to 'src/ini.c')
-rw-r--r-- | src/ini.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |