File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -903,12 +903,20 @@ static int buffered_stream_close(git_writestream *s)
903903 GIT_ASSERT_ARG (buffered_stream );
904904
905905#ifndef GIT_DEPRECATE_HARD
906- if (buffered_stream -> write_fn == NULL ) {
906+ if (buffered_stream -> write_fn == NULL ) {
907+ git_buf legacy_output = GIT_BUF_INIT ,
908+ legacy_input = GIT_BUF_INIT ;
909+
910+ legacy_output .ptr = buffered_stream -> output -> ptr ;
911+ legacy_output .size = buffered_stream -> output -> size ;
912+ legacy_input .ptr = buffered_stream -> input .ptr ;
913+ legacy_input .size = buffered_stream -> input .size ;
914+
907915 error = buffered_stream -> legacy_write_fn (
908916 buffered_stream -> filter ,
909917 buffered_stream -> payload ,
910- ( git_buf * ) buffered_stream -> output ,
911- ( git_buf * ) & buffered_stream -> input ,
918+ & legacy_output ,
919+ & legacy_input ,
912920 buffered_stream -> source );
913921 } else
914922#endif
You can’t perform that action at this time.
0 commit comments