gssize *remain)
{
const gchar *h;
- static gchar buf[BUFSIZ];
gchar *t;
guint len, inlen;
gssize octets_remain;
gboolean got_sp;
+ gchar buf[1024];
len = size;
inlen = sizeof (buf) - 1;
octets_remain = *remain;
while (len > 0 && inlen > 0 && (octets_remain != 0)) {
+
if (*h == '\r' || *h == '\n') {
if (got_sp) {
/* Ignore spaces at the end of line */
gssize *remain)
{
const gchar *h;
- static gchar buf[BUFSIZ];
gchar *t;
guint len, inlen;
gssize octets_remain;
+ gchar buf[1024];
len = size;
inlen = sizeof (buf) - 1;