diff options
author | Marko Kiiskila <marko@runtime.io> | 2016-06-07 12:21:26 -0700 |
---|---|---|
committer | Marko Kiiskila <marko@runtime.io> | 2016-06-07 12:21:26 -0700 |
commit | 1b77365ac17db5a48cc2d0b738587c4b8b4717a9 (patch) | |
tree | 34c937b254c95ed4c74aad34df0ad5ff2ba79616 /sys | |
parent | 7bd06f43193a22773819156db96e2baa59125fb2 (diff) |
config; use define instead of hardcoded value for max variable name.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/config/src/config_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/config/src/config_file.c b/sys/config/src/config_file.c index 402038cd..046c5ac0 100644 --- a/sys/config/src/config_file.c +++ b/sys/config/src/config_file.c @@ -222,8 +222,8 @@ static int conf_file_save_end(struct conf_store *cs) { struct conf_file *cf = (struct conf_file *)cs; - char name1[64]; - char name2[64]; + char name1[CONF_FILE_NAME_MAX]; + char name2[CONF_FILE_NAME_MAX]; int rc; fs_close(cf->cf_save_fp); |