Subversion Repositories SvarDOS

Rev

Rev 214 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 214 Rev 215
Line 54... Line 54...
54
    if (lastbyteislf == 0) {
54
    if (lastbyteislf == 0) {
55
      lastbyteislf = 1;
55
      lastbyteislf = 1;
56
      continue;
56
      continue;
57
    }
57
    }
58
    /* end of headers! rewind the buffer and return new len */
58
    /* end of headers! rewind the buffer and return new len */
-
 
59
    i += 1; /* add 1 to skip the current \n character */
59
    len -= (i + 1);
60
    len -= i;
60
    if (len > 0) memmove(buff, buff + i + 1, len);
61
    if (len > 0) memmove(buff, buff + i, len + 1); /* +1 so I catch the string terminator as well */
61
    return(len);
62
    return(len);
62
  }
63
  }
63
  return(0);
64
  return(0);
64
}
65
}
65
 
66