fix typo in ctype.c
authorStefan Reinauer <stepan@coresystems.de>
Tue, 19 Aug 2008 16:53:47 +0000 (16:53 +0000)
committerStefan Reinauer <stepan@openbios.org>
Tue, 19 Aug 2008 16:53:47 +0000 (16:53 +0000)
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3518 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

payloads/libpayload/libc/ctype.c

index 5485b46097213ecb00c92ef45b3546470746dc9e..fba9a7caee672fc84adfbce874b2129ba45b197c 100644 (file)
@@ -81,7 +81,7 @@ int ispunct(int c)
 
 int isspace(int c)
 {
-       return (c == ' ' || (c >= '\t' || c <= '\r'));
+       return (c == ' ' || (c >= '\t' && c <= '\r'));
 }
 
 int isupper(int c)