libcacard: fix opposite usage of isspace
authorAlon Levy <alevy@redhat.com>
Wed, 13 Apr 2011 11:42:00 +0000 (14:42 +0300)
committerAurelien Jarno <aurelien@aurel32.net>
Sun, 17 Apr 2011 18:40:31 +0000 (20:40 +0200)
Signed-off-by: Alon Levy <alevy@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
libcacard/vcard_emul_nss.c

index 71f2ba3..baada52 100644 (file)
@@ -955,7 +955,7 @@ count_tokens(const char *str, char token, char token_end)
 static const char *
 strip(const char *str)
 {
-    for (; *str && !isspace(*str); str++) {
+    for (; *str && isspace(*str); str++) {
     }
     return str;
 }
@@ -963,7 +963,7 @@ strip(const char *str)
 static const char *
 find_blank(const char *str)
 {
-    for (; *str && isspace(*str); str++) {
+    for (; *str && !isspace(*str); str++) {
     }
     return str;
 }