can_add
if (!can_add(err, cmd, 1))
if (!can_add(err, cmd, len + 1)) {
if (!can_add(err, cmd, header_len + len)) {