From d35d1cc20f3435f3391bd0a611035f165ba3d679 Mon Sep 17 00:00:00 2001 From: thorpej Date: Mon, 21 Apr 1997 21:08:33 +0000 Subject: [PATCH] Don't need to account for space for NUL, as it's included in the sizeof(_PATH_DEV), noted by Chris Demetriou --- sbin/dump/optr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/dump/optr.c b/sbin/dump/optr.c index 55063d8b1e0f..31ef4e6c9ffe 100644 --- a/sbin/dump/optr.c +++ b/sbin/dump/optr.c @@ -1,4 +1,4 @@ -/* $NetBSD: optr.c,v 1.9 1997/04/21 21:05:07 thorpej Exp $ */ +/* $NetBSD: optr.c,v 1.10 1997/04/21 21:08:33 thorpej Exp $ */ /*- * Copyright (c) 1980, 1988, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94"; #else -static char rcsid[] = "$NetBSD: optr.c,v 1.9 1997/04/21 21:05:07 thorpej Exp $"; +static char rcsid[] = "$NetBSD: optr.c,v 1.10 1997/04/21 21:08:33 thorpej Exp $"; #endif #endif /* not lint */ @@ -274,7 +274,7 @@ sendmes(tty, message) FILE *f_tty; (void)strncpy(t, _PATH_DEV, sizeof(t) - 1); - (void)strncat(t, tty, sizeof(t) - sizeof(_PATH_DEV) - 1); + (void)strncat(t, tty, sizeof(t) - sizeof(_PATH_DEV)); t[sizeof(t) - 1] = '\0'; if ((f_tty = fopen(t, "w")) != NULL) {