avoid strcpy() (bnc #870383)