From 7cfdf33ff03f2c453f4b525eca66c074cdfe299c Mon Sep 17 00:00:00 2001 From: maverikou Date: Thu, 28 Dec 2023 21:09:49 +0200 Subject: TextReplace const correctness (#3678) * TextReplace const correctness * cleanup --- src/rtext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rtext.c') diff --git a/src/rtext.c b/src/rtext.c index 2a6aa127..104e302a 100644 --- a/src/rtext.c +++ b/src/rtext.c @@ -1514,7 +1514,7 @@ const char *TextSubtext(const char *text, int position, int length) // Replace text string // REQUIRES: strlen(), strstr(), strncpy(), strcpy() // WARNING: Allocated memory must be manually freed -char *TextReplace(char *text, const char *replace, const char *by) +char *TextReplace(const char *text, const char *replace, const char *by) { // Sanity checks and initialization if (!text || !replace || !by) return NULL; -- cgit v1.2.3