pud: use more secure strncpy