I did as you told, and got a backtrace in gdb of where the segfault occurs, but I cannot print out the function's locat variables!
Here is the offending function:
Code:
void ll_ins_str(LINKED_LINE* ll, char* str, unsigned long col) //Insert string
{
unsigned long len = strlen(str);
ll_realloc(ll, ll->len+len); //Reallocate RAM
memmove(ll->text+col+len, ll->text+col, (ll->len-col+1)*sizeof(char)); //FIXME segfault
memcpy(ll->text+col, str, len*sizeof(char)); //Paste in new string
ll->len += len;
}
A screenshot of the debugging session is in the attachment.