| Actually replace the:
strncatbuff(b, adr_complete, protpos - 1);
with:
strncatbuff(b, adr_complete, ((int)protpos -
(int)adr_complete));
Been working too much in languages without pointers, forgot
strstr returns a pointer to the position, not the position
in the "string"
| |