API versioning: Fix coverity errors from strncpy()