diff options
Diffstat (limited to 'camel/providers/nntp')
-rw-r--r-- | camel/providers/nntp/camel-nntp-stream.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/providers/nntp/camel-nntp-stream.c b/camel/providers/nntp/camel-nntp-stream.c index bc62c0a0c2..244b67acb1 100644 --- a/camel/providers/nntp/camel-nntp-stream.c +++ b/camel/providers/nntp/camel-nntp-stream.c @@ -42,7 +42,7 @@ static CamelObjectClass *parent_class = NULL; #define CS_CLASS(so) CAMEL_NNTP_STREAM_CLASS(CAMEL_OBJECT_GET_CLASS(so)) #define CAMEL_NNTP_STREAM_SIZE (4096) -#define CAMEL_NNTP_STREAM_LINE (1024) /* maximum line size */ +#define CAMEL_NNTP_STREAM_LINE_SIZE (1024) /* maximum line size */ static int stream_fill(CamelNNTPStream *is) @@ -200,8 +200,8 @@ camel_nntp_stream_init(CamelNNTPStream *is, CamelNNTPStreamClass *isclass) { /* +1 is room for appending a 0 if we need to for a line */ is->ptr = is->end = is->buf = g_malloc(CAMEL_NNTP_STREAM_SIZE+1); - is->lineptr = is->linebuf = g_malloc(CAMEL_NNTP_STREAM_LINE+1); - is->lineend = is->linebuf + CAMEL_NNTP_STREAM_LINE; + is->lineptr = is->linebuf = g_malloc(CAMEL_NNTP_STREAM_LINE_SIZE+1); + is->lineend = is->linebuf + CAMEL_NNTP_STREAM_LINE_SIZE; /* init sentinal */ is->ptr[0] = '\n'; |