Fix possible buffer overruns
This commit is contained in:
@@ -346,7 +346,7 @@
|
||||
/*--------------------------------------------------------------------------*/
|
||||
int WEST4100_Query(pWEST4100 *pData, int parAddress, int *parValue)
|
||||
{
|
||||
unsigned char pCommand[20], pReply[132], pAddress[1];
|
||||
unsigned char pCommand[20], pReply[132], pAddress[2];
|
||||
int iRet;
|
||||
pWEST4100 self;
|
||||
|
||||
@@ -374,7 +374,7 @@
|
||||
/*-------------------------------------------------------------------------*/
|
||||
int WEST4100_Write(pWEST4100 *pData, int parAddress, int parValue)
|
||||
{
|
||||
unsigned char displaytext[20];
|
||||
unsigned char displaytext[40];
|
||||
int iRet;
|
||||
pWEST4100 self;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user