Skip to content

Commit 723fb2c

Browse files
sezerocyrillos
authored andcommitted
rdoff/rdfwriteheader: Write object length and header length in correct order
Compared to 2.12.xx rdfwriteheader() writes the object length and header length in flipped order. Issue seems to have been introduced by commit 8dc9653. BR3392717 Signed-off-by: Ozkan Sezer <sezeroz@gmail.com> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
1 parent c2ea414 commit 723fb2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rdoff/rdoff.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,8 +612,8 @@ int rdfwriteheader(FILE * fp, rdf_headerbuf * h)
612612

613613
l = membuflength(h->buf);
614614
l2 = l + 14 + 10 * h->nsegments + h->seglength;
615-
fwriteint32_t(l, fp);
616-
fwriteint32_t(l2, fp);
615+
fwriteint32_t(l2, fp); /* object length */
616+
fwriteint32_t(l, fp); /* header length */
617617

618618
membufdump(h->buf, fp);
619619

0 commit comments

Comments
 (0)