[#2212] CID72461:

changed strncpy to snprintf to null-terminate