summaryrefslogtreecommitdiffstats
path: root/sm
diff options
context:
space:
mode:
authorMarcus Brinkmann <mb@g10code.com>2010-04-23 03:59:08 +0200
committerMarcus Brinkmann <mb@g10code.com>2010-04-23 03:59:08 +0200
commitc86a59db74f38dd72c565816313f3677768dd43c (patch)
tree55c2cad9617e6064f360b46e91e3707cd0065f06 /sm
parentremove gpgtar (diff)
downloadgnupg2-c86a59db74f38dd72c565816313f3677768dd43c.tar.xz
gnupg2-c86a59db74f38dd72c565816313f3677768dd43c.zip
2010-04-23 Marcus Brinkmann <marcus@g10code.de>
* certreqgen.c (read_parameters): Use ascii_isspace instead of spacep to stop at newline, too.
Diffstat (limited to 'sm')
-rw-r--r--sm/ChangeLog5
-rw-r--r--sm/certreqgen.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/sm/ChangeLog b/sm/ChangeLog
index cbe0245ea..3919fe963 100644
--- a/sm/ChangeLog
+++ b/sm/ChangeLog
@@ -1,3 +1,8 @@
+2010-04-23 Marcus Brinkmann <marcus@g10code.de>
+
+ * certreqgen.c (read_parameters): Use ascii_isspace instead of
+ spacep to stop at newline, too.
+
2010-04-14 Werner Koch <wk@g10code.com>
* gpgsm.c (main) [W32CE]: Disable dirmngr for now.
diff --git a/sm/certreqgen.c b/sm/certreqgen.c
index 043226a44..36d96a035 100644
--- a/sm/certreqgen.c
+++ b/sm/certreqgen.c
@@ -294,11 +294,11 @@ read_parameters (ctrl_t ctrl, estream_t fp, ksba_writer_t writer)
keyword = p;
if (*keyword == '%')
{
- for (; *p && !spacep (p); p++)
+ for (; *p && !ascii_isspace (*p); p++)
;
if (*p)
*p++ = 0;
- for (; spacep (p); p++)
+ for (; ascii_isspace (*p); p++)
;
value = p;
trim_trailing_spaces (value);