diff --git a/src/include/switch_core.h b/src/include/switch_core.h index 5f852fd4eb..4607dc20e6 100644 --- a/src/include/switch_core.h +++ b/src/include/switch_core.h @@ -383,7 +383,7 @@ SWITCH_DECLARE(char *) switch_core_permanent_strdup(const char *todup); \param todup the string to duplicate \return a pointer to the newly duplicated string */ -SWITCH_DECLARE(char *) switch_core_session_strdup(switch_core_session_t *session, char *todup); +SWITCH_DECLARE(char *) switch_core_session_strdup(switch_core_session_t *session, const char *todup); /*! \brief Copy a string using memory allocation from a given pool diff --git a/src/switch_core.c b/src/switch_core.c index c4187b459b..c6b31f4b1b 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -1466,7 +1466,7 @@ SWITCH_DECLARE(char *) switch_core_permanent_strdup(const char *todup) } -SWITCH_DECLARE(char *) switch_core_session_strdup(switch_core_session_t *session, char *todup) +SWITCH_DECLARE(char *) switch_core_session_strdup(switch_core_session_t *session, const char *todup) { char *duped = NULL; switch_size_t len;