A
August Karlstrom
Tim said:The variable to_len is clearly supposed to be a length. It
shouldn't be compared to NULL. If we think the 'if' is
necessary, a test that makes more sense would be:
if( to_len > 0 ){
memmove( ptr, l_to, to_len );
ptr += to_len;
}
Yes, of course. I mixed it up with Pete's suggestion to use
if (l_to != NULL) {
memmove(ptr, l_to, to_len);
ptr += to_len;
}
August