fix backwards conditional in stpncpy