aboutsummaryrefslogtreecommitdiffstats
path: root/g10/textfilter.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-10-16 16:00:17 +0000
committerWerner Koch <[email protected]>1998-10-16 16:00:17 +0000
commite81e0970f7ab6c815f3396168d47fc6ab57fdf30 (patch)
tree175aa8c360560b30cf500a91eb72b34e16bdedc4 /g10/textfilter.c
parentbackup (diff)
downloadgnupg-e81e0970f7ab6c815f3396168d47fc6ab57fdf30.tar.gz
gnupg-e81e0970f7ab6c815f3396168d47fc6ab57fdf30.zip
last local commit
Diffstat (limited to 'g10/textfilter.c')
-rw-r--r--g10/textfilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/textfilter.c b/g10/textfilter.c
index 804b48505..fc81a9136 100644
--- a/g10/textfilter.c
+++ b/g10/textfilter.c
@@ -48,7 +48,7 @@ read_line( byte *buf, size_t *r_buflen, IOBUF a )
assert(buflen >= 20 );
buflen -= 3; /* leave some room for CR,LF and one extra */
- for(c=0, n=0; n < buflen && (c=iobuf_get2(a)) != -1 && c != '\n'; )
+ for(c=0, n=0; n < buflen && (c=iobuf_get(a)) != -1 && c != '\n'; )
buf[n++] = c;
buf[n] = 0;
if( c == -1 ) {
@@ -58,7 +58,7 @@ read_line( byte *buf, size_t *r_buflen, IOBUF a )
}
else if( c != '\n' ) {
IOBUF b = iobuf_temp();
- while( (c=iobuf_get2(a)) != -1 && c != '\n' ) {
+ while( (c=iobuf_get(a)) != -1 && c != '\n' ) {
iobuf_put(b,c);
if( c != ' ' && c != '\t' && c != '\r' )
break;