1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

* gpg.c (add_notation_data): Fix reversed logic for isascii check when

adding notations.  Noted by Christian Biere.
This commit is contained in:
David Shaw 2006-02-23 19:52:20 +00:00
parent c37453211c
commit 1736866b5b
2 changed files with 4 additions and 1 deletions

View file

@ -4029,7 +4029,7 @@ add_notation_data( const char *string, int which )
/* we only support printable text - therefore we enforce the use
* of only printable characters (an empty value is valid) */
for( s++; *s ; s++ ) {
if ( isascii (*s) )
if ( !isascii (*s) )
highbit = 1;
else if (iscntrl(*s)) {
log_error(_("a notation value must not use"