* libmisc/console.c: Use a less disturbing construct for splint.
This commit is contained in:
parent
10396f9536
commit
5e45ac1688
@ -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>
|
||||
|
||||
* libmisc/limits.c: Parse the limits, umask, nice, maxlogin, file
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user