summaryrefslogtreecommitdiff
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
commit4f832f7f7e72d61f302f40fe4e0a758c88981c73 (patch)
tree1efccc0427787dcc32b2e1c3c968ed43c5fc761c /libcacard
parent7994a33cb199893f6b893808883301800579c277 (diff)
downloadqemu-4f832f7f7e72d61f302f40fe4e0a758c88981c73.tar.gz
qemu-4f832f7f7e72d61f302f40fe4e0a758c88981c73.tar.bz2
qemu-4f832f7f7e72d61f302f40fe4e0a758c88981c73.zip
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 71f2ba3ae5..baada52a3c 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;
}