Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
liblinphone
Commits
14ae4407
Commit
14ae4407
authored
9 years ago
by
Ghislain MARY
Browse files
Options
Download
Patches
Plain Diff
Fix possible crash in tester logging on Windows 10.
parent
461e462c
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tester/liblinphone_tester_windows.cpp
+3
-3
tester/liblinphone_tester_windows.cpp
with
3 additions
and
3 deletions
tester/liblinphone_tester_windows.cpp
+
3
−
3
View file @
14ae4407
...
...
@@ -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
...
...
@@ -19,11 +19,11 @@ LibLinphoneTester^ LibLinphoneTester::_instance = ref new LibLinphoneTester();
static
void
nativeOutputTraceHandler
(
int
lev
,
const
char
*
fmt
,
va_list
args
)
{
if
(
sTraceListener
)
{
wchar_t
wstr
[
MAX_TRACE_SIZE
];
wchar_t
wstr
[
MAX_TRACE_SIZE
]
=
{
0
}
;
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
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets