aboutsummaryrefslogtreecommitdiff
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/loopback.c
parentPrint just "ARCnet", not "1.5Mbps ARCnet" since (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/loopback.c')
-rw-r--r--lib/loopback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/loopback.c b/lib/loopback.c
index a96fd81..3395e28 100644
--- a/lib/loopback.c
+++ b/lib/loopback.c
@@ -1,7 +1,7 @@
/*
* lib/loopback.c This file contains the general hardware types.
*
- * Version: $Id: loopback.c,v 1.3 1998/11/15 20:11:06 freitag Exp $
+ * Version: $Id: loopback.c,v 1.4 1998/11/17 15:16:54 freitag Exp $
*
* Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
* Copyright 1993 MicroWalt Corporation
@@ -52,7 +52,7 @@ static char *pr_sunspec(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_unspec(sap->sa_data));
}