Use bstrncpy and not strncpy.
Don't return a pointer to a local variable.