libcacard: fix opposite usage of isspace
PATCH 1/1 libcacard: fix opposite usage of isspace
Signed-off-by Alon Levy <[email protected]>
--- libcacard/vcard_emul_nss.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
libcacard/vcard_emul_nss.c +2 -2
@@ -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; }
Signature · 1 line
1.7.4.2
This is the result of an of the list discussion with me, and I can confirm this fixes the issues I was seeing:
Tested-by Hans de Goede <[email protected]>
Quoted 27 lines · Alon Levy
Signed-off-by Alon Levy<[email protected]>--- libcacard/vcard_emul_nss.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)libcacard/vcard_emul_nss.c +2
-2@@ -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; }
Aurelien Jarno
AppliedQuoted 4 lines · Alon Levy
Signed-off-by Alon Levy <[email protected]>--- libcacard/vcard_emul_nss.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Thanks, applied.
Quoted 27 lines
libcacard/vcard_emul_nss.c +2
-2@@ -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; }Signature · 1 line
1.7.4.2
Signature · 2 lines
Aurelien Jarno GPG: 1024D/F1BCDB73 [email protected] http://www.aurel32.net