René Scharfe wrote:

> -     if (incomplete)
> -             *lineno++ = len;
> +     *lineno = len;
> -     sb->num_lines = num + incomplete;
> +     sb->num_lines = num;

This will always treat whatever comes after the last newline as an
incomplete line, even if it has zero length.  Is that safe?  (Not a
rhetorical question --- I haven't looked carefully at the caller.)

To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to