Skip to content

Commit 223f261

Browse files
committed
utf8.c: Fix comment
The parameter to this function is the string length; not the pointer to the end of the string
1 parent 9b79602 commit 223f261

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

utf8.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -513,9 +513,9 @@ S_is_utf8_overlong(const U8 * const s, const STRLEN len)
513513
PERL_STATIC_INLINE int
514514
S_isFF_overlong(const U8 * const s, const STRLEN len)
515515
{
516-
/* Returns an int indicating whether or not the UTF-8 sequence from 's' to
517-
* 'e' - 1 is an overlong beginning with \xFF. It returns a positive
518-
* number if it is; 0 if it isn't, and -1 if there isn't enough
516+
/* Returns an int indicating whether or not the UTF-8 sequence of 'len'
517+
* bytes starting at 's' is an overlong beginning with \xFF. It returns a
518+
* positive number if it is; 0 if it isn't, and -1 if there isn't enough
519519
* information to tell. This last return value can happen if the sequence
520520
* is incomplete, missing some trailing bytes that would form a complete
521521
* character. If there are enough bytes to make a definitive decision,

0 commit comments

Comments
 (0)