* libmisc/console.c: Use a less disturbing construct for splint.

This commit is contained in:
nekral-guest
2009-04-24 23:03:14 +00:00
parent 10396f9536
commit 5e45ac1688
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2009-04-25 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/console.c: Use a less disturbing construct for splint.
2009-04-25 Nicolas François <nicolas.francois@centraliens.net> 2009-04-25 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/limits.c: Parse the limits, umask, nice, maxlogin, file * libmisc/limits.c: Parse the limits, umask, nice, maxlogin, file

View File

@ -68,8 +68,8 @@ static bool is_listed (const char *cfgin, const char *tty, bool def)
*/ */
if (*cons != '/') { if (*cons != '/') {
cons = strcpy (buf, cons); strcpy (buf, cons);
while ((s = strtok (cons, ":")) != NULL) { while ((s = strtok (buf, ":")) != NULL) {
if (strcmp (s, tty) == 0) { if (strcmp (s, tty) == 0) {
return true; return true;
} }