diff options
author | Anders Broman <anders.broman@ericsson.com> | 2008-05-13 06:55:45 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2008-05-13 06:55:45 +0000 |
commit | d22975841b065e71cb4906dc42fb25b36a0ab31d (patch) | |
tree | 12995894e0aecdc1b77d82b99e7b1af32041ead0 /capture-pcap-util-unix.c | |
parent | 9ca142b16012f55fb5d9334ce61a7fcbdfd0470f (diff) | |
download | wireshark-d22975841b065e71cb4906dc42fb25b36a0ab31d.tar.gz wireshark-d22975841b065e71cb4906dc42fb25b36a0ab31d.tar.bz2 wireshark-d22975841b065e71cb4906dc42fb25b36a0ab31d.zip |
Fix some of the Errors/warnings detected by checkapi.
svn path=/trunk/; revision=25283
Diffstat (limited to 'capture-pcap-util-unix.c')
-rw-r--r-- | capture-pcap-util-unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capture-pcap-util-unix.c b/capture-pcap-util-unix.c index 390b4d763c..2ecfa3757f 100644 --- a/capture-pcap-util-unix.c +++ b/capture-pcap-util-unix.c @@ -207,7 +207,7 @@ get_interface_list(int *err, char **err_str) * Get the interface flags. */ memset(&ifrflags, 0, sizeof ifrflags); - strncpy(ifrflags.ifr_name, ifr->ifr_name, + g_strlcpy(ifrflags.ifr_name, ifr->ifr_name, sizeof ifrflags.ifr_name); if (ioctl(sock, SIOCGIFFLAGS, (char *)&ifrflags) < 0) { if (errno == ENXIO) |