Commit 5804cdf0 authored by Ghislain MARY's avatar Ghislain MARY

Various fixes.

parent 6d05e428
......@@ -4,7 +4,7 @@
<mp:PhoneIdentity PhoneProductId="c6108770-1859-484a-b353-cd502001986d" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>belle-sip-tester</DisplayName>
<PublisherDisplayName>Ghislain</PublisherDisplayName>
<PublisherDisplayName>Belledonne Communications</PublisherDisplayName>
<Logo>Assets\Logo.png</Logo>
</Properties>
<Dependencies>
......
......@@ -110,6 +110,9 @@ void belle_sip_tester_uninit(void) {
bc_tester_uninit();
}
#if !defined(ANDROID) && !defined(TARGET_OS_IPHONE) && !(defined(BELLE_SIP_WINDOWS_PHONE) || defined(BELLE_SIP_WINDOWS_UNIVERSAL))
static const char* belle_sip_helper =
"\t\t\t--verbose\n"
"\t\t\t--silent\n"
......@@ -118,8 +121,6 @@ static const char* belle_sip_helper =
"\t\t\t--auth-domain <test auth domain>\n"
"\t\t\t--root-ca <root ca file path>\n";
#if !defined(ANDROID) && !defined(TARGET_OS_IPHONE) && !(defined(BELLE_SIP_WINDOWS_PHONE) || defined(BELLE_SIP_WINDOWS_UNIVERSAL))
int main (int argc, char *argv[]) {
int i;
int ret;
......
......@@ -8,7 +8,7 @@ using namespace Windows::Foundation;
using namespace Windows::Storage;
using namespace Windows::System::Threading;
#define MAX_TRACE_SIZE 512
#define MAX_TRACE_SIZE 2048
#define MAX_SUITE_NAME_SIZE 128
#define MAX_WRITABLE_DIR_SIZE 1024
......@@ -24,7 +24,7 @@ static void nativeOutputTraceHandler(int lev, const char *fmt, va_list args)
std::string str;
str.resize(MAX_TRACE_SIZE);
vsnprintf((char *)str.c_str(), MAX_TRACE_SIZE, fmt, args);
mbstowcs(wstr, str.c_str(), sizeof(wstr));
mbstowcs(wstr, str.c_str(), MAX_TRACE_SIZE - 1);
String^ msg = ref new String(wstr);
String^ l;
switch (lev) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment