mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Suppress OpenBSD linker warning
git-svn-id: svn://coreboot.org/openbios/openbios-devel@417 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user