summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-10 10:40:34 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-09-10 10:40:34 -0700
commitbeb0876af6a532d32ae70675dcd882b2e9e55fc8 (patch)
tree08a404acadc4f8b3cfc8382e8497feff4e47d354
parentf82c0ee2d491b700bb8ae38dea3cf711e6bfb176 (diff)
AddQuotes: mark input as const
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--props.c4
1 files 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++) {