aboutsummaryrefslogtreecommitdiff
path: root/src/misc.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2020-01-23 09:20:43 +0100
committerAndreas Schneider <asn@cryptomilk.org>2020-01-23 09:20:43 +0100
commit8215753402584a387a3b22c366d0f8e4115ccf76 (patch)
tree772e38ec7fea40d78f73d04c90346ced58dcb373 /src/misc.c
parent10d27a0d42b51776900dba9c2f386b4b0d0d4e39 (diff)
downloadlibssh-8215753402584a387a3b22c366d0f8e4115ccf76.tar.gz
libssh-8215753402584a387a3b22c366d0f8e4115ccf76.tar.xz
libssh-8215753402584a387a3b22c366d0f8e4115ccf76.zip
misc: Make the src pointer const in ssh_strreplace()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Jelen <jjelen@redhat.com>
Diffstat (limited to 'src/misc.c')
-rw-r--r--src/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc.c b/src/misc.c
index 52ca3a47..faa185f9 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -1799,7 +1799,7 @@ err:
* @returns src_replaced a pointer that points to the replaced string.
* NULL if allocation fails or if src is NULL.
*/
-char *ssh_strreplace(char *src, const char *pattern, const char *replace)
+char *ssh_strreplace(const char *src, const char *pattern, const char *replace)
{
char *p = NULL;
char *src_replaced = NULL;