summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Osterried <thomas@osterried.de>2008-10-22 22:25:04 +0000
committerThomas Osterried <thomas@osterried.de>2008-10-22 22:25:04 +0000
commit2f365e83195fbc50808958fca17973903a657283 (patch)
treee22cf9c1f621b3228ea2b078d1a6cc850e9e5573
parent9935c2263ccf1a7aea80f3f82cee0e2e9a26ace6 (diff)
fix: strncpy(ut.ut_id, tty + 3, sizeof(ut.ut_id)); // was sizeof(ut.ut_line) with size = 12, wheras ut_id is 4.
-rw-r--r--ax25/axspawn.c4
1 files changed, 2 insertions, 2 deletions
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) {