diff options
Diffstat (limited to 'sysklogd/logger.c')
-rw-r--r-- | sysklogd/logger.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c index 252cfc494..981cef322 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c @@ -2,7 +2,7 @@ /* * Mini logger implementation for busybox * - * Copyright (C) 1999-2003 by Erik Andersen <andersen@codepoet.org> + * Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -49,11 +49,11 @@ # endif #endif -/* Decode a symbolic name to a numeric value +/* Decode a symbolic name to a numeric value * this function is based on code * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. - * + * * Original copyright notice is retained at the end of this file. */ static int decode(char *name, CODE * codetab) @@ -71,7 +71,7 @@ static int decode(char *name, CODE * codetab) return (-1); } -/* Decode a symbolic name to a numeric value +/* Decode a symbolic name to a numeric value * this function is based on code * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -132,7 +132,7 @@ extern int logger_main(int argc, char **argv) do { /* read from stdin */ i = 0; - while ((c = getc(stdin)) != EOF && c != '\n' && + while ((c = getc(stdin)) != EOF && c != '\n' && i < (sizeof(buf)-1)) { buf[i++] = c; } @@ -180,8 +180,8 @@ extern int logger_main(int argc, char **argv) * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change - * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change> + * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change + * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change> * * 4. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software |