From 2f365e83195fbc50808958fca17973903a657283 Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Wed, 22 Oct 2008 22:25:04 +0000 Subject: fix: strncpy(ut.ut_id, tty + 3, sizeof(ut.ut_id)); // was sizeof(ut.ut_line) with size = 12, wheras ut_id is 4. --- ax25/axspawn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ax25/axspawn.c') diff --git a/ax25/axspawn.c b/ax25/axspawn.c index af5230d..9bdf591 100644 --- a/ax25/axspawn.c +++ b/ax25/axspawn.c @@ -1,6 +1,6 @@ /* * - * $Id: axspawn.c,v 1.17 2008/10/10 16:24:00 dl9sau Exp $ + * $Id: axspawn.c,v 1.18 2008/10/22 22:25:04 dl9sau Exp $ * * axspawn.c - run a program from ax25d. * @@ -999,7 +999,7 @@ void cleanup(char *tty) setutent(); ut.ut_type = LOGIN_PROCESS; - strncpy(ut.ut_id, tty + 3, sizeof(ut.ut_line)); + strncpy(ut.ut_id, tty + 3, sizeof(ut.ut_id)); ut_line = getutid(&ut); if (ut_line != NULL) { -- cgit v1.2.3