Fix null terminator in sdb_ns_new