diff options
Diffstat (limited to 'lib/readkey.c')
-rw-r--r-- | lib/readkey.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/readkey.c b/lib/readkey.c index e72da0066b..c26e9d51ab 100644 --- a/lib/readkey.c +++ b/lib/readkey.c @@ -5,9 +5,6 @@ * * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix * - * See file CREDITS for list of people who contributed to this - * project. - * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. @@ -64,7 +61,7 @@ int read_key(void) esc[i] = getchar(); if (esc[i++] == '~') break; - if (i == ARRAY_SIZE(esc)) + if (i == ARRAY_SIZE(esc) - 1) return -1; } } |