fix gccism
git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@492 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
parent
9ba4716057
commit
eb808f7d0b
6
rdpsnd.c
6
rdpsnd.c
@ -79,6 +79,8 @@ rdpsnd_process_negotiate(STREAM in)
|
|||||||
WAVEFORMATEX *format;
|
WAVEFORMATEX *format;
|
||||||
STREAM out;
|
STREAM out;
|
||||||
BOOL device_available = False;
|
BOOL device_available = False;
|
||||||
|
int readcnt;
|
||||||
|
int discardcnt;
|
||||||
|
|
||||||
in_uint8s(in, 14); /* flags, volume, pitch, UDP port */
|
in_uint8s(in, 14); /* flags, volume, pitch, UDP port */
|
||||||
in_uint16_le(in, in_format_count);
|
in_uint16_le(in, in_format_count);
|
||||||
@ -105,8 +107,8 @@ rdpsnd_process_negotiate(STREAM in)
|
|||||||
in_uint16_le(in, format->cbSize);
|
in_uint16_le(in, format->cbSize);
|
||||||
|
|
||||||
/* read in the buffer of unknown use */
|
/* read in the buffer of unknown use */
|
||||||
int readcnt = format->cbSize;
|
readcnt = format->cbSize;
|
||||||
int discardcnt = 0;
|
discardcnt = 0;
|
||||||
if (format->cbSize > MAX_CBSIZE)
|
if (format->cbSize > MAX_CBSIZE)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "cbSize too large for buffer: %d\n", format->cbSize);
|
fprintf(stderr, "cbSize too large for buffer: %d\n", format->cbSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user