summaryrefslogtreecommitdiff
path: root/src/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c14
1 files changed, 7 insertions, 7 deletions
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 <libgen.h>
+#include <limits.h>
#include <string.h>
-#include <stdlib.h>
#include <stdio.h>
-#include <err.h>
+#include <stdlib.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
-#include <limits.h>
-#include <libgen.h>
+#include <gs.h>
+#include <gtk-3.0/gtk/gtk.h>
#include <jansson.h>
-#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);
}