Bah, as my luck would have it, I had a kernel source tree in the window

while strlcpy() existed, before it got backed out due to an extended
bikeshed argument.  Sigh.  Back to the old version with the redundant
code to terminate the string. :-(
This commit is contained in:
Peter Wemm 2001-01-27 06:01:48 +00:00
parent d2e32c6770
commit bc234bdcac

View File

@ -273,7 +273,8 @@ static void __Tunable_ ## var (void *ignored) \
tmp = getenv((path)); \
if (tmp == NULL) \
tmp = (defval); \
strlcpy((var), tmp, (size)); \
strncpy((var), tmp, (size)); \
(var)[(size) - 1] = 0; \
} \
SYSINIT(__Tunable_init_ ## var, SI_SUB_TUNABLES, SI_ORDER_MIDDLE, __Tunable_ ## var , NULL);
@ -284,7 +285,8 @@ static void __Tunable_ ## var (void *ignored) \
tmp = getenv((path)); \
if (tmp == NULL) \
tmp = (defval); \
strlcpy((var), tmp, (size)); \
strncpy((var), tmp, (size)); \
(var)[(size) - 1] = 0; \
}
/*