mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
fixed clearsig stuff
This commit is contained in:
parent
ccb3140ab2
commit
5aed77d1db
28 changed files with 1428 additions and 584 deletions
|
@ -51,8 +51,11 @@ read_line( byte *buf, size_t *r_buflen, IOBUF a )
|
|||
for(c=0, n=0; n < buflen && (c=iobuf_get2(a)) != -1 && c != '\n'; )
|
||||
buf[n++] = c;
|
||||
buf[n] = 0;
|
||||
if( c == -1 )
|
||||
if( c == -1 ) {
|
||||
rc = -1;
|
||||
if( !n || buf[n-1] != '\n' )
|
||||
no_lf = 1;
|
||||
}
|
||||
else if( c != '\n' ) {
|
||||
IOBUF b = iobuf_temp();
|
||||
while( (c=iobuf_get2(a)) != -1 && c != '\n' ) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue