projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
unistr/u8-to-u16: Reject invalid input.
[gnulib.git]
/
lib
/
unistr
/
u8-to-u16.c
diff --git
a/lib/unistr/u8-to-u16.c
b/lib/unistr/u8-to-u16.c
index
6dac1b7
..
3745c2b
100644
(file)
--- a/
lib/unistr/u8-to-u16.c
+++ b/
lib/unistr/u8-to-u16.c
@@
-58,7
+58,7
@@
FUNC (const SRC_UNIT *s, size_t n, DST_UNIT *resultbuf, size_t *lengthp)
int count;
/* Fetch a Unicode character from the input string. */
- count = u8_mbtouc (&uc, s, s_end - s);
+ count = u8_mbtouc
r
(&uc, s, s_end - s);
if (count < 0)
{
if (!(result == resultbuf || result == NULL))