[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnupg-devel
Subject:    [PATCH libksba 2/7] tests: fix print_sexp and print_sexp_hex functions
From:       Dmitry Eremin-Solenikov <dbaryshkov () gmail ! com>
Date:       2014-07-12 11:11:14
Message-ID: 1405163479-10925-3-git-send-email-dbaryshkov () gmail ! com
[Download RAW message or body]

* tests/t-common.h (print_sexp, print_sexp_hex): advance pointer on
  closing brace.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 tests/t-common.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/t-common.h b/tests/t-common.h
index 71512a9..cf82f3e 100644
--- a/tests/t-common.h
+++ b/tests/t-common.h
@@ -110,6 +110,7 @@ print_sexp (ksba_const_sexp_t p)
           else if (*p == ')')
             {
               putchar (*p);
+              p++;
               if (--level <= 0 )
                 return;
             }
@@ -176,6 +177,7 @@ print_sexp_hex (ksba_const_sexp_t p)
           else if (*p == ')')
             {
               putchar (*p);
+              p++;
               if (--level <= 0 )
                 return;
             }
-- 
2.0.0


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic