Get rid of the last strcpy() call by using an static inline function.