summaryrefslogtreecommitdiff
path: root/src/conf.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-10-30 10:37:36 +0100
committerAlfred E. Heggestad <alfred.heggestad@gmail.com>2016-10-30 10:38:51 +0100
commit84adba018fe8de37e6d4f08db5ab51b505d67673 (patch)
treedc16e6091a19aec6fab154ce8e9ca84fe46c6413 /src/conf.c
parenta71d0bf8541d4fc3d77c3105ea906a2759648d57 (diff)
core: add FS_PATH_MAX
ref: https://github.com/alfredh/baresip/pull/143
Diffstat (limited to 'src/conf.c')
-rw-r--r--src/conf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf.c b/src/conf.c
index aa6b930..6be861e 100644
--- a/src/conf.c
+++ b/src/conf.c
@@ -155,7 +155,7 @@ void conf_path_set(const char *path)
*/
int conf_path_get(char *path, size_t sz)
{
- char buf[256];
+ char buf[FS_PATH_MAX];
int err;
/* Use explicit conf path */
@@ -296,7 +296,7 @@ int conf_get_sa(const struct conf *conf, const char *name, struct sa *sa)
*/
int conf_configure(void)
{
- char path[256], file[256];
+ char path[FS_PATH_MAX], file[FS_PATH_MAX];
int err;
#if defined (WIN32)