git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7701 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-02-19 21:17:00 +00:00
parent b4247b8c19
commit ec7d356e83
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}