Fix wrong replacement for strncpy and small typo