From 5e45ac16881ed276fa8997d750598b96f1e45655 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Fri, 24 Apr 2009 23:03:14 +0000 Subject: [PATCH] * libmisc/console.c: Use a less disturbing construct for splint. --- ChangeLog | 4 ++++ libmisc/console.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a157a26e..f840dab9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-04-25 Nicolas François + + * libmisc/console.c: Use a less disturbing construct for splint. + 2009-04-25 Nicolas François * libmisc/limits.c: Parse the limits, umask, nice, maxlogin, file diff --git a/libmisc/console.c b/libmisc/console.c index 23970d79..458aaf2e 100644 --- a/libmisc/console.c +++ b/libmisc/console.c @@ -68,8 +68,8 @@ static bool is_listed (const char *cfgin, const char *tty, bool def) */ if (*cons != '/') { - cons = strcpy (buf, cons); - while ((s = strtok (cons, ":")) != NULL) { + strcpy (buf, cons); + while ((s = strtok (buf, ":")) != NULL) { if (strcmp (s, tty) == 0) { return true; }