src/server/util/io.c

changeset 548
40ecc0a6b280
parent 539
d556b45b0d24
child 549
b26bec196a2e
equal deleted inserted replaced
547:280bf87c8689 548:40ecc0a6b280
635 char *end; 635 char *end;
636 int64_t clen; 636 int64_t clen;
637 errno = 0; 637 errno = 0;
638 clen = strtoll(hdr_start, &end, 16); 638 clen = strtoll(hdr_start, &end, 16);
639 *hdr_end = save_c; 639 *hdr_end = save_c;
640 if(errno) { 640 if(end != hdr_end) {
641 return -1; 641 return -1;
642 } 642 }
643 i++; 643 i++;
644 644
645 if(clen == 0) { 645 if(clen == 0) {

mercurial