rem: if( src[i] == 0xa )
add: if( *src == 0xa )
context: static void copy_str( char *dest, const uint8 *src, size_t len ){	int i;		// copy until 0xa	for( i = 0; i < len; ++i ) {		if( src[i] == 0xa )			break;					*dest++ = *src++;	}		// remove trailing spaces	for( i = i - 1; i >= 0; --i ) {		if( *dest-- != ' ' )			break;	}		*++dest = 0;}