Browse Source

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>
remotes/github/stable-0.15
Alon Levy 16 years ago
committed by Aurelien Jarno
parent
commit
685ff50f69
  1. 4
      libcacard/vcard_emul_nss.c

4
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;
}

Loading…
Cancel
Save