mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
* assuan-buffer.c (_assuan_read_line): Deal with reads of more
than a line. * assuan-defs.h: Add space in the context for this.
This commit is contained in:
parent
1e443ad637
commit
d3a626ba68
3 changed files with 41 additions and 8 deletions
|
@ -24,7 +24,7 @@
|
|||
#include <sys/types.h>
|
||||
#include "assuan.h"
|
||||
|
||||
#define LINELENGTH 1002 /* 1000 + [CR,]LF */
|
||||
#define LINELENGTH 102 /* 1000 + [CR,]LF */
|
||||
|
||||
struct cmdtbl_s {
|
||||
const char *name;
|
||||
|
@ -45,6 +45,10 @@ struct assuan_context_s {
|
|||
int linelen; /* w/o CR, LF - might not be the same as
|
||||
strlen(line) due to embedded nuls. However a nul
|
||||
is always written at this pos */
|
||||
struct {
|
||||
char line[LINELENGTH];
|
||||
int linelen ;
|
||||
} attic;
|
||||
} inbound;
|
||||
|
||||
struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue