1
0
Fork 0
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:
Werner Koch 2001-11-24 21:10:22 +00:00
parent 1e443ad637
commit d3a626ba68
3 changed files with 41 additions and 8 deletions

View file

@ -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 {