Return to fileio.c CVS log | Up to [local] / src / usr.bin / mg |
version 1.109, 2023/03/08 04:43:11 | version 1.110, 2023/03/30 07:26:15 | ||
---|---|---|---|
|
|
||
goto nohome; | goto nohome; | ||
if (conffile != NULL) { | if (conffile != NULL) { | ||
(void)strncpy(file, conffile, NFILEN); | (void)strlcpy(file, conffile, NFILEN); | ||
} else if (suffix == NULL) { | } else if (suffix == NULL) { | ||
ret = snprintf(file, sizeof(file), _PATH_MG_STARTUP, home); | ret = snprintf(file, sizeof(file), _PATH_MG_STARTUP, home); | ||
if (ret < 0 || ret >= sizeof(file)) | if (ret < 0 || ret >= sizeof(file)) |