Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
ortp
Commits
a0846207
Commit
a0846207
authored
Aug 17, 2010
by
Simon Morlat
Browse files
fix crash on mac with tracing
parent
53407402
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ortp.c
View file @
a0846207
...
...
@@ -169,7 +169,7 @@ char * ortp_strdup_vprintf(const char *fmt, va_list ap)
/* Guess we need no more than 100 bytes. */
int
n
,
size
=
200
;
char
*
p
,
*
np
;
#ifdef
__linux
#if
n
def
WIN32
va_list
cap
;
/*copy of our argument list: a va_list cannot be re-used (SIGSEGV on linux 64 bits)*/
#endif
if
((
p
=
(
char
*
)
ortp_malloc
(
size
))
==
NULL
)
...
...
@@ -177,7 +177,7 @@ char * ortp_strdup_vprintf(const char *fmt, va_list ap)
while
(
1
)
{
/* Try to print in the allocated space. */
#ifdef
__linux
#if
n
def
WIN32
va_copy
(
cap
,
ap
);
n
=
vsnprintf
(
p
,
size
,
fmt
,
cap
);
va_end
(
cap
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment