From beb0876af6a532d32ae70675dcd882b2e9e55fc8 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 10 Sep 2022 10:40:34 -0700 Subject: AddQuotes: mark input as const Signed-off-by: Alan Coopersmith --- props.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/props.c b/props.c index 380c6d0..73b465c 100644 --- a/props.c +++ b/props.c @@ -48,11 +48,11 @@ in this Software without prior written authorization from The Open Group. #include "fstobdf.h" static char * -AddQuotes(unsigned char *string, unsigned int length) +AddQuotes(const unsigned char *string, unsigned int length) { static unsigned char new[256] = "\""; unsigned char *cp; - unsigned char *end; + const unsigned char *end; end = string + length; for (cp = &new[1]; string < end; cp++, string++) { -- cgit v1.2.3