Deleted Added
full compact
26c26
< * $FreeBSD: head/sys/kern/kern_linker.c 69781 2000-12-08 21:51:06Z dwmalone $
---
> * $FreeBSD: head/sys/kern/kern_linker.c 70417 2000-12-28 08:14:58Z peter $
1174c1174,1175
< static char linker_path[MAXPATHLEN] = "/boot/modules/;/modules/;/boot/kernel/";
---
> static char def_linker_path[] = "/boot/modules/;/modules/;/boot/kernel/";
> static char linker_path[MAXPATHLEN] = "";
1178a1180,1182
> TUNABLE_STR_DECL("module_path", def_linker_path, linker_path,
> sizeof(linker_path));
>
1214c1218
< result = malloc((len + (ep - cp) + extlen), M_LINKER, M_WAITOK);
---
> result = malloc((len + (ep - cp) + extlen + 1), M_LINKER, M_WAITOK);
1219c1223,1224
< strcpy(result + (ep - cp), name);
---
> strcpy(result + (ep - cp), "/");
> strcat(result, name);
1221d1225
<