mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
replace snprintf with strlcpy
ok oga@
This commit is contained in:
parent
85e6c61360
commit
8be175b175
3
conf.c
3
conf.c
@ -194,8 +194,7 @@ conf_setup(struct conf *c, const char *conf_file)
|
||||
if (stat(conf_file, &sb) == -1 || !(sb.st_mode & S_IFREG))
|
||||
errx(1, "%s: %s", conf_file, strerror(errno));
|
||||
else
|
||||
snprintf(c->conf_path, sizeof(c->conf_path), "%s",
|
||||
conf_file);
|
||||
strlcpy(c->conf_path, conf_file, sizeof(c->conf_path));
|
||||
|
||||
conf_init(c);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user