location: Increase buffer size for printing channel info
The current buffer size of 32 bytes was too small to hold the version info string which resulted in a non-null terminated buffer (_snprintf does not null-terminate the buffer if it is too small) being printed.
This commit is contained in:
parent
2b7146575f
commit
14cdd6a105
@ -182,8 +182,8 @@ static UINT location_on_data_received(IWTSVirtualChannelCallback* pChannelCallba
|
||||
break;
|
||||
}
|
||||
|
||||
char cbuffer[32] = { 0 };
|
||||
char sbuffer[32] = { 0 };
|
||||
char cbuffer[64] = { 0 };
|
||||
char sbuffer[64] = { 0 };
|
||||
WLog_Print(plugin->baseDynPlugin.log, WLOG_DEBUG,
|
||||
"Server version %s, client version %s",
|
||||
location_version_str(callback->serverVersion, sbuffer, sizeof(sbuffer)),
|
||||
|
Loading…
Reference in New Issue
Block a user