tweak
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7701 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b4247b8c19
commit
ec7d356e83
|
@ -124,6 +124,11 @@ SWITCH_DECLARE(int) switch_vsnprintf(char *buf, switch_size_t len, const char *f
|
|||
|
||||
SWITCH_DECLARE(char *) switch_copy_string(char *dst, const char *src, switch_size_t dst_size)
|
||||
{
|
||||
if (!dst) return NULL;
|
||||
if (!src) {
|
||||
dst = NULL;
|
||||
return NULL;
|
||||
}
|
||||
return apr_cpystrn(dst, src, dst_size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue