Suppress OpenBSD linker warning

git-svn-id: svn://coreboot.org/openbios/openbios-devel@417 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2009-01-17 20:28:21 +00:00
parent 0560ab5941
commit 3af23c3fdc

View File

@@ -447,9 +447,7 @@ static FILE *fopen_include(const char *fil)
include *incl = &includes;
while (incl) {
strncpy(fullpath, incl->path, MAX_PATH_LEN);
strncat(fullpath, "/", MAX_PATH_LEN);
strncat(fullpath, fil, MAX_PATH_LEN);
snprintf(fullpath, sizeof(fullpath), "%s/%s", incl->path, fil);
ret = fopen(fullpath, "r");
if (ret != NULL)
return ret;