summaryrefslogtreecommitdiff
path: root/lib/fddi.c
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@suse.de>1998-11-17 15:16:09 +0000
committerKlaas Freitag <freitag@suse.de>1998-11-17 15:16:09 +0000
commit8e304247055c6ca2e5b2b30ce09ded3644dc89c7 (patch)
tree63b1c7a9ec7fa85f1c5d8a1a23f365758b091bc4 /lib/fddi.c
parentfc0c76155e878d21d3a908b1db10bc89d67f2e8e (diff)
downloadnet-tools-8e304247055c6ca2e5b2b30ce09ded3644dc89c7.tar.gz
net-tools-8e304247055c6ca2e5b2b30ce09ded3644dc89c7.tar.bz2
net-tools-8e304247055c6ca2e5b2b30ce09ded3644dc89c7.zip
- Allow device probing again (this should fix the problem Arnaldo de Melo
reported) - Various cleanups and bug fixes. - Better error message for ENODEV. - Proper exit codes for interface printing - Add safe_strncpy and use it everywhere: this fixes quite a lot of strncpy bugs (strncpy doesn't add a '\0' when the source string is too long!)
Diffstat (limited to 'lib/fddi.c')
-rw-r--r--lib/fddi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fddi.c b/lib/fddi.c
index fadb8bd..38621ee 100644
--- a/lib/fddi.c
+++ b/lib/fddi.c
@@ -2,7 +2,7 @@
* lib/fddi.c This file contains an implementation of the "FDDI"
* support functions.
*
- * Version: $Id: fddi.c,v 1.4 1998/11/15 20:09:35 freitag Exp $
+ * Version: $Id: fddi.c,v 1.5 1998/11/17 15:16:39 freitag Exp $
*
* Author: Lawrence V. Stefani, <stefani@lkg.dec.com>
*
@@ -63,7 +63,7 @@ static char *pr_sfddi(struct sockaddr *sap)
static char buf[64];
if (sap->sa_family == 0xFFFF || sap->sa_family == 0)
- return strncpy(buf, _("[NONE SET]"), sizeof(buf));
+ return safe_strncpy(buf, _("[NONE SET]"), sizeof(buf));
return (pr_fddi(sap->sa_data));
}