do not forget to add an offset for line zero in diff_blobs() Fixes a problem in 'tog diff' where the first line of the output was cut off.
diff --git a/lib/diff.c b/lib/diff.c
index 28c6046..ab9338f 100644
--- a/lib/diff.c
+++ b/lib/diff.c
@@ -71,6 +71,11 @@ diff_blobs(off_t **line_offsets, size_t *nlines,
if (line_offsets && *line_offsets && *nlines > 0)
outoff = (*line_offsets)[*nlines - 1];
+ else if (line_offsets) {
+ err = add_line_offset(line_offsets, nlines, 0);
+ if (err)
+ goto done;
+ }
if (resultp)
*resultp = NULL;