diff options
Diffstat (limited to 'utf8proc.c')
-rw-r--r-- | utf8proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -112,7 +112,7 @@ DLLEXPORT const char *utf8proc_errmsg(ssize_t errcode) { case UTF8PROC_ERROR_INVALIDOPTS: return "Invalid options for UTF-8 processing chosen."; default: - return "An unknown error occured while processing UTF-8 data."; + return "An unknown error occurred while processing UTF-8 data."; } } @@ -370,7 +370,7 @@ DLLEXPORT ssize_t utf8proc_decompose( while (1) { if (options & UTF8PROC_NULLTERM) { rpos += utf8proc_iterate(str + rpos, -1, &uc); - /* checking of return value is not neccessary, + /* checking of return value is not necessary, as 'uc' is < 0 in case of error */ if (uc < 0) return UTF8PROC_ERROR_INVALIDUTF8; if (rpos < 0) return UTF8PROC_ERROR_OVERFLOW; |