Would you mind explaining what you want to achieve with this line?
Code:
linecount += *(text->pstring)[i]->pad;



Always learn from history, to be sure you make the same mistakes again...