qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] libcacard: fix opposite usage of isspace


From: Hans de Goede
Subject: Re: [Qemu-devel] [PATCH] libcacard: fix opposite usage of isspace
Date: Wed, 13 Apr 2011 14:53:44 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110403 Fedora/3.1.9-6.fc15 Lightning/1.0b2 Thunderbird/3.1.9

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 <address@hidden>

On 04/13/2011 01:42 PM, Alon Levy wrote:
Signed-off-by: Alon Levy<address@hidden>
---
  libcacard/vcard_emul_nss.c |    4 ++--
  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;
  }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]