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>
This commit is contained in:
parent
6a385343e4
commit
685ff50f69
@ -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…
Reference in New Issue
Block a user