From 2ac31b614443be1fafd25ef527fc3288b4792a5a Mon Sep 17 00:00:00 2001 From: Kalle Olavi Niemitalo Date: Sun, 18 Mar 2007 17:48:51 +0200 Subject: [PATCH] utf8_to_unicode: Let the end parameter point to const. --- src/intl/charsets.c | 2 +- src/intl/charsets.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/intl/charsets.c b/src/intl/charsets.c index cdb859825..99f0f7e78 100644 --- a/src/intl/charsets.c +++ b/src/intl/charsets.c @@ -632,7 +632,7 @@ unicode_fold_label_case(unicode_val_T c) } inline unicode_val_T -utf8_to_unicode(unsigned char **string, unsigned char *end) +utf8_to_unicode(unsigned char **string, const unsigned char *end) { unsigned char *str = *string; unicode_val_T u; diff --git a/src/intl/charsets.h b/src/intl/charsets.h index 6445b0948..69d67ace7 100644 --- a/src/intl/charsets.h +++ b/src/intl/charsets.h @@ -140,7 +140,7 @@ unsigned char *utf8_step_backward(unsigned char *, unsigned char *, inline int unicode_to_cell(unicode_val_T); unicode_val_T unicode_fold_label_case(unicode_val_T); inline int strlen_utf8(unsigned char **); -inline unicode_val_T utf8_to_unicode(unsigned char **, unsigned char *); +inline unicode_val_T utf8_to_unicode(unsigned char **, const unsigned char *); unicode_val_T cp_to_unicode(int, unsigned char **, unsigned char *); #endif /* CONFIG_UTF8 */