From 685ff50f698f11dec8e9e193e8bc86b051a8cf26 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Wed, 13 Apr 2011 14:42:00 +0300 Subject: [PATCH] libcacard: fix opposite usage of isspace Signed-off-by: Alon Levy Tested-by: Hans de Goede Signed-off-by: Aurelien Jarno --- libcacard/vcard_emul_nss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libcacard/vcard_emul_nss.c b/libcacard/vcard_emul_nss.c index 71f2ba3..baada52 100644 --- a/libcacard/vcard_emul_nss.c +++ b/libcacard/vcard_emul_nss.c @@ -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; } -- 2.7.4