Fix wrong usage+compiler warning for strncpy
Created by: aroffringa
strncpy might copy a string unterminated, so requires explicit handling of that case.
Created by: aroffringa
strncpy might copy a string unterminated, so requires explicit handling of that case.