From 477e1ba2977435ae7bb75c7dbd95cf28247f89bd Mon Sep 17 00:00:00 2001 From: nirav Date: Thu, 28 Mar 2019 09:10:52 +0530 Subject: Move APIs into libgs dir --- src/config.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index f409700..24e3b54 100644 --- a/src/config.c +++ b/src/config.c @@ -1,15 +1,15 @@ #define _POSIX_C_SOURCE 200809L +#include +#include #include -#include #include -#include +#include #include #include #include -#include -#include +#include +#include #include -#include "string-util.h" #include "config.h" #include "log.h" @@ -54,8 +54,8 @@ char *get_config_path() return NULL; } char config_path[PATH_MAX]; - strlcpy(config_path, home, sizeof(config_path)); - strlcat(config_path, CONFIG_PATH_SUFFIX, sizeof(config_path)); + g_strlcpy(config_path, home, sizeof(config_path)); + g_strlcat(config_path, CONFIG_PATH_SUFFIX, sizeof(config_path)); return strdup(config_path); } -- cgit v1.2.3