summaryrefslogtreecommitdiffstats
path: root/libcacard
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2011-04-13 14:42:00 +0300
committerAurelien Jarno <aurelien@aurel32.net>2011-04-17 20:40:31 +0200
commit685ff50f698f11dec8e9e193e8bc86b051a8cf26 (patch)
tree1efccc0427787dcc32b2e1c3c968ed43c5fc761c /libcacard
parent6a385343e42c500f8404ecf9365ff63f4c942057 (diff)
downloadhqemu-685ff50f698f11dec8e9e193e8bc86b051a8cf26.zip
hqemu-685ff50f698f11dec8e9e193e8bc86b051a8cf26.tar.gz
libcacard: fix opposite usage of isspace
Signed-off-by: Alon Levy <alevy@redhat.com> Tested-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'libcacard')
-rw-r--r--libcacard/vcard_emul_nss.c4
1 files 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;
}
OpenPOWER on IntegriCloud