summaryrefslogtreecommitdiffstats
path: root/g10/build-packet.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2000-05-25 18:28:04 +0200
committerWerner Koch <wk@gnupg.org>2000-05-25 18:28:04 +0200
commitd1648b4d7a2e045bc8ee81f666627d6a792564d6 (patch)
treeda4ff62971292b007ac855b9bb9f096177ac0f6d /g10/build-packet.c
parentSee ChangeLog: Fri Mar 24 11:25:45 CET 2000 Werner Koch (diff)
downloadgnupg2-d1648b4d7a2e045bc8ee81f666627d6a792564d6.tar.xz
gnupg2-d1648b4d7a2e045bc8ee81f666627d6a792564d6.zip
See ChangeLog: Thu May 25 18:39:11 CEST 2000 Werner Koch
Diffstat (limited to 'g10/build-packet.c')
-rw-r--r--g10/build-packet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/g10/build-packet.c b/g10/build-packet.c
index 5772b13be..84912ac05 100644
--- a/g10/build-packet.c
+++ b/g10/build-packet.c
@@ -196,7 +196,8 @@ static int
do_user_id( IOBUF out, int ctb, PKT_user_id *uid )
{
write_header(out, ctb, uid->len);
- uid->stored_at = iobuf_tell( out ); /* what a hack */
+ uid->stored_at = iobuf_get_temp_length ( out ); /* what a hack ... */
+ /* ... and it does only work when used with a temp iobuf */
if( iobuf_write( out, uid->name, uid->len ) )
return GPGERR_WRITE_FILE;
return 0;