summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/defs.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/defs.c')
-rw-r--r--usr.sbin/ppp/defs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/defs.c b/usr.sbin/ppp/defs.c
index b295a5ee713..c0ce7c6303b 100644
--- a/usr.sbin/ppp/defs.c
+++ b/usr.sbin/ppp/defs.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: defs.c,v 1.2 1997/12/21 14:27:03 brian Exp $
+ * $Id: defs.c,v 1.3 1997/12/23 22:38:02 brian Exp $
*/
#include <sys/param.h>
@@ -56,7 +56,7 @@ void
SetLabel(const char *label)
{
if (label)
- strncpy(dstsystem, label, sizeof dstsystem);
+ strncpy(dstsystem, label, sizeof(dstsystem) - 1);
else
*dstsystem = '\0';
}