summaryrefslogtreecommitdiffstats
path: root/src/utf8.h
diff options
context:
space:
mode:
authorDimitri van Heesch <doxygen@gmail.com>2021-03-29 18:55:03 (GMT)
committerDimitri van Heesch <doxygen@gmail.com>2021-03-29 18:55:03 (GMT)
commit90ae39c5d66718ecc0068af1c265f526642f66e6 (patch)
treec614a8ee3e6d91d5df34a7a6be81d3ca8df5e644 /src/utf8.h
parent265b08e206c52b81efc102a563b31fbc4109244c (diff)
downloadDoxygen-90ae39c5d66718ecc0068af1c265f526642f66e6.zip
Doxygen-90ae39c5d66718ecc0068af1c265f526642f66e6.tar.gz
Doxygen-90ae39c5d66718ecc0068af1c265f526642f66e6.tar.bz2
Fixed potential crash in handling empty list item.
Diffstat (limited to 'src/utf8.h')
-rw-r--r--src/utf8.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utf8.h b/src/utf8.h
index 538230d..08979f3 100644
--- a/src/utf8.h
+++ b/src/utf8.h
@@ -51,7 +51,7 @@ uint32_t getUnicodeForUTF8CharAt(const std::string &input,size_t pos);
/** Returns the number of bytes making up a single UTF8 character given the first byte
* in the sequence.
*/
-int getUTF8CharNumBytes(char firstByte);
+uint8_t getUTF8CharNumBytes(char firstByte);
/** Writes the UTF8 character pointed to by s to stream t and returns a pointer
* to the next character.