diff options
author | Klaas Freitag <freitag@suse.de> | 1998-11-17 15:16:09 +0000 |
---|---|---|
committer | Klaas Freitag <freitag@suse.de> | 1998-11-17 15:16:09 +0000 |
commit | 8e304247055c6ca2e5b2b30ce09ded3644dc89c7 (patch) | |
tree | 63b1c7a9ec7fa85f1c5d8a1a23f365758b091bc4 /lib/fddi.c | |
parent | fc0c76155e878d21d3a908b1db10bc89d67f2e8e (diff) | |
download | net-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); } |