diff options
author | Werner Koch <[email protected]> | 1999-02-16 13:16:33 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-02-16 13:16:33 +0000 |
commit | e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed (patch) | |
tree | 31dd54ac26b4c3fc30cc93d66161e72bf4cf7927 /g10/parse-packet.c | |
parent | See ChangeLog: Sat Feb 13 14:13:04 CET 1999 Werner Koch (diff) | |
download | gnupg-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.tar.gz gnupg-e1a1b3fc90af66a5db5ee92514b0a7c52e49d1ed.zip |
See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner Koch
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 3c45a45b4..40c737c39 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -1400,19 +1400,8 @@ parse_user_id( IOBUF inp, int pkttype, unsigned long pktlen, PACKET *packet ) packet->pkt.user_id = m_alloc(sizeof *packet->pkt.user_id + pktlen); packet->pkt.user_id->len = pktlen; p = packet->pkt.user_id->name; - for( ; pktlen; pktlen--, p++ ) { + for( ; pktlen; pktlen--, p++ ) *p = iobuf_get_noeof(inp); - /* 0xff is not a valid utf-8 encoding so we can use it to replace - * Nulls. This has the advantage that we can work with regular - * C strings. When exporting it, we change it back to Null - * the utf-8 functions know about this special convention. - * The advantage of this single character is that we can - * simple replace it. Problem is that we can't handle the 0xff - * character which may have been used by pref rfc2440 implementations - * I hope we can live with this. */ - if( !*p ) - *p = 0xff; - } *p = 0; if( list_mode ) { |