Add an assertion (n > 0) in strNcpy(), it may help to catch incorrect