Author: blueswirl
Date: 2009-01-17 21:28:21 +0100 (Sat, 17 Jan 2009)
New Revision: 417
Modified:
openbios-devel/kernel/bootstrap.c
Log:
Suppress OpenBSD linker warning
Modified: openbios-devel/kernel/bootstrap.c
===================================================================
--- openbios-devel/kernel/bootstrap.c 2009-01-17 19:02:38 UTC (rev 416)
+++ openbios-devel/kernel/bootstrap.c 2009-01-17 20:28:21 UTC (rev 417)
@@ -447,9 +447,7 @@
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;