From 8215753402584a387a3b22c366d0f8e4115ccf76 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 23 Jan 2020 09:20:43 +0100 Subject: misc: Make the src pointer const in ssh_strreplace() Signed-off-by: Andreas Schneider Reviewed-by: Jakub Jelen --- src/misc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc.c') 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; -- cgit v1.2.1