aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2008-03-25 19:41:11 +0000
committerWerner Koch <[email protected]>2008-03-25 19:41:11 +0000
commit9a8ee6e6be362fd43b5b208909121144ffaf770c (patch)
tree421fb8afb3e9d3b05b62728ea64cb5b0a9009141 /g10
parentFix bug 894. (diff)
downloadgnupg-9a8ee6e6be362fd43b5b208909121144ffaf770c.tar.gz
gnupg-9a8ee6e6be362fd43b5b208909121144ffaf770c.zip
Changed the way i18n files are located under Windows. The setting of the
Registry key is not anymore required. Helpfiles are not properly located.
Diffstat (limited to 'g10')
-rw-r--r--g10/ChangeLog5
-rw-r--r--g10/keyserver.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog
index c9ad8f95f..fbb2930f8 100644
--- a/g10/ChangeLog
+++ b/g10/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-25 Werner Koch <[email protected]>
+
+ * keyserver.c (parse_keyrec): Take care of char defaulting to
+ unsigned when using hextobyte.
+
2008-03-25 David Shaw <[email protected]> (wk)
* import.c (collapse_uids): Fix bug 894: possible memory
diff --git a/g10/keyserver.c b/g10/keyserver.c
index 23497d819..9a4e08483 100644
--- a/g10/keyserver.c
+++ b/g10/keyserver.c
@@ -683,9 +683,9 @@ parse_keyrec(char *keystring)
while(*tok)
if(tok[0]=='%' && tok[1] && tok[2])
{
- if((userid[i]=hextobyte(&tok[1]))==-1)
- userid[i]='?';
+ int c;
+ userid[i] = (c=hextobyte(&tok[1])) == -1 ? '?' : c;
i++;
tok+=3;
}