altos: Use all 16 bits of setup packet len when limiting reply len
authorKeith Packard <keithp@keithp.com>
Wed, 18 Dec 2013 07:50:54 +0000 (23:50 -0800)
committerKeith Packard <keithp@keithp.com>
Wed, 18 Dec 2013 07:53:59 +0000 (23:53 -0800)
commit1f035ac2df1cfa6964ae904aba0aedde279ca921
tree414d4c682171f212212d82b20b36134abfd43536
parent1280ba2e51b36f417f3adb6d101405ee75e7e509
altos: Use all 16 bits of setup packet len when limiting reply len

We were only using the low 8 bits of the setup packet reply max len,
which meant that if the other side sent a weird max len (as Windows 7
does), then we'd truncate our setup reply to whatever was in the low 8
bits of that value.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lpc/ao_usb_lpc.c
src/stm/ao_usb_stm.c