Skip to content

Commit 312f789

Browse files
committed
ext/standard/quot_print.c: Mark readonly string as const
1 parent 5c191a4 commit 312f789

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/standard/quot_print.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ PHPAPI zend_string *php_quot_print_encode(const unsigned char *str, size_t lengt
141141
{
142142
zend_ulong lp = 0;
143143
unsigned char c, *d;
144-
char *hex = "0123456789ABCDEF";
144+
const char *hex = "0123456789ABCDEF";
145145
zend_string *ret;
146146

147147
ret = zend_string_safe_alloc(3, (length + (((3 * length)/(PHP_QPRINT_MAXL-9)) + 1)), 0, 0);

0 commit comments

Comments
 (0)