MADS: Rex - Avoid potential not null terminated buffers after the use of strncpy