Scubapro Aladin Square

Linus Torvalds torvalds at linux-foundation.org
Tue Nov 14 13:31:33 PST 2017


On Tue, Nov 14, 2017 at 1:21 PM, vavincavent <vavincavent at gmail.com> wrote:
> Sorry, where and what do i change?

This:

  --- a/src/scubapro_g2.c
  +++ b/src/scubapro_g2.c
  @@ -113,7 +113,7 @@ static dc_status_t
   scubapro_g2_transfer(scubapro_g2_device_t *g2, const unsigned char
command[], unsigned int csize, unsigned char answer[], unsigned $
   {
          dc_custom_io_t *io = _dc_context_custom_io(g2->base.context);
  -       unsigned char buf[TX_PACKET_SIZE] = { 0 };
  +       unsigned char buf[TX_PACKET_SIZE+1] = { 0 };
          dc_status_t status = DC_STATUS_SUCCESS;
          size_t transferred = 0;

(yeah, it's whitespace-damaged, but you get the idea).

            Linus


More information about the subsurface mailing list