Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update comment on the use of strncpy()

  • Loading branch information...
commit 5938d0119536a6ef938ff0a19d1e9cc0b952c94f 1 parent 0ce5505
itojun authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 kame/kame/rafixd/rafixd.c
View
6 kame/kame/rafixd/rafixd.c
@@ -1,4 +1,4 @@
-/* $KAME: rafixd.c,v 1.11 2007/07/25 05:22:45 itojun Exp $ */
+/* $KAME: rafixd.c,v 1.12 2007/07/25 05:32:03 itojun Exp $ */
/*
* Copyright (C) 2003 WIDE Project.
@@ -531,8 +531,8 @@ bpf_open(iface)
bzero(&ifr, sizeof(ifr));
/*
- * Note: don't use strlcpy() here. ifr.ifr_name may not always be
- * NUL-terminated.
+ * Note: don't use strlcpy() here. ifr.ifr_name does not need to be
+ * NUL-terminated, and iface is a NUL-terminated string.
*/
strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name));
if (ioctl(fd, BIOCSETIF, &ifr) < 0) {
Please sign in to comment.
Something went wrong with that request. Please try again.