diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-10 10:40:34 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-09-10 10:40:34 -0700 |
commit | beb0876af6a532d32ae70675dcd882b2e9e55fc8 (patch) | |
tree | 08a404acadc4f8b3cfc8382e8497feff4e47d354 /props.c | |
parent | f82c0ee2d491b700bb8ae38dea3cf711e6bfb176 (diff) |
AddQuotes: mark input as const
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'props.c')
-rw-r--r-- | props.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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++) { |