Skip to content

Commit 60408fd

Browse files
committed
fixed:build warn
1 parent 48b89b1 commit 60408fd

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

XEngine_Source/XEngine_ModuleDatabase/ModuleDatabase_Machine/ModuleDatabase_Machine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ bool CModuleDatabase_Machine::ModuleDatabase_Machine_Insert(XENGINE_MACHINEINFO*
9292
DBModule_dwErrorCode = ERROR_APISERVICE_MODULE_DATABASE_PARAMENT;
9393
return false;
9494
}
95-
XCHAR tszSQLStatement[4096];
95+
XCHAR tszSQLStatement[10240];
9696
memset(tszSQLStatement, '\0', sizeof(tszSQLStatement));
9797

9898
_xstprintf(tszSQLStatement, _X("INSERT INTO `XEngine_MachineList` (tszServiceName,tszMachineName,tszMachineUser,tszMachineSystem,tszMachineSoftware,tszMachineHardware,nTimeNumber,tszCreateTime) VALUES('%s','%s','%s','%s','%s','%s',%lld,now())"), pSt_MachineInfo->tszServiceName, pSt_MachineInfo->tszMachineName, pSt_MachineInfo->tszMachineUser, pSt_MachineInfo->tszMachineSystem, pSt_MachineInfo->tszMachineSoftware, pSt_MachineInfo->tszMachineHardware, pSt_MachineInfo->nTimeNumber);

XEngine_Source/XEngine_ServiceApp/XEngine_HttpApp/XEngine_TaskPost/TaskPost_BackService.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ void XCALLBACK HTTPTask_TaskPost_CBAudio(uint8_t* ptszAVBuffer, int nAVLen, AVCO
1919
{
2020
while (true)
2121
{
22-
int nALen = 0;
2322
XBYTE tszAVBuffer[8192] = {};
2423
if (!AudioCodec_Help_FifoRecv(xhAudioFifo, tszAVBuffer, &nAVLen))
2524
{

XEngine_Source/XEngine_UserProtocol.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ typedef struct
223223
//机器收集
224224
typedef struct
225225
{
226-
XCHAR tszMachineSoftware[8192];
227-
XCHAR tszMachineHardware[8192];
226+
XCHAR tszMachineSoftware[4096];
227+
XCHAR tszMachineHardware[4096];
228228
XCHAR tszServiceName[256];
229229
XCHAR tszMachineName[256];
230230
XCHAR tszMachineUser[256];

0 commit comments

Comments
 (0)