2003-03-27 Joel Sherrill <joel@OARcorp.com>

* kern/kern_sysctl.c: Converted from BSP strlcpy() to strncpy().
This commit is contained in:
Joel Sherrill
2003-03-27 13:48:41 +00:00
parent 8db5e22630
commit c2034a9eb7
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2003-03-27 Joel Sherrill <joel@OARcorp.com>
* kern/kern_sysctl.c: Converted from BSP strlcpy() to strncpy().
2003-03-25 Joel Sherrill <joel@OARcorp.com>
* rtems/rtems_bsdnet_malloc_starvation.c: Fixed name of include file.

View File

@@ -856,7 +856,7 @@ retry:
outlen = strlen((char *)arg1)+1;
tmparg = malloc(outlen, M_SYSCTLTMP, M_WAITOK);
if (strlcpy(tmparg, (char *)arg1, outlen) >= outlen) {
if (strncpy(tmparg, (char *)arg1, outlen) >= outlen) {
free(tmparg, M_SYSCTLTMP);
goto retry;
}