|
|
|
@ -418,7 +418,10 @@ struct roots_config *roots_config_create_from_args(int argc, char *argv[]) {
|
|
|
|
|
char cwd[MAXPATHLEN];
|
|
|
|
|
if (getcwd(cwd, sizeof(cwd)) != NULL) {
|
|
|
|
|
char buf[MAXPATHLEN];
|
|
|
|
|
snprintf(buf, MAXPATHLEN, "%s/%s", cwd, "rootston.ini");
|
|
|
|
|
if (snprintf(buf, MAXPATHLEN, "%s/%s", cwd, "rootston.ini") >= MAXPATHLEN) {
|
|
|
|
|
wlr_log(L_ERROR, "config path too long");
|
|
|
|
|
exit(1);
|
|
|
|
|
}
|
|
|
|
|
config->config_path = strdup(buf);
|
|
|
|
|
} else {
|
|
|
|
|
wlr_log(L_ERROR, "could not get cwd");
|
|
|
|
|