This website works better with JavaScript.
Home
Explore
Help
Sign In
RuhNetConsulting
/
rtpengine
mirror of
https://github.com/sipwise/rtpengine
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
822
Wiki
Activity
Browse Source
fix str_init_dup_str
closes
#1021
Change-Id: I0354e4b357c159893a91ef9c96560f99a12778d2
pull/1023/head
Richard Fuchs
6 years ago
parent
92ee64f760
commit
7cbea58090
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
lib/str.h
+ 1
- 0
lib/str.h
View File
@ -245,6 +245,7 @@ INLINE str *str_init_dup_str(str *out, const str *s) {
out
-
>
s
=
malloc
(
s
-
>
len
+
1
)
;
memcpy
(
out
-
>
s
,
s
-
>
s
,
s
-
>
len
)
;
out
-
>
s
[
s
-
>
len
]
=
'
\0
'
;
out
-
>
len
=
s
-
>
len
;
return
out
;
}
INLINE
void
str_free_dup
(
str
*
out
)
{
Write
Preview
Loading…
Cancel
Save