null-terminate for ln, sn