mirror of
git://git.sv.gnu.org/nano.git
synced 2024-11-26 14:51:36 +03:00
in mbstrchr(), detect the case where the character isn't found in the
string more accurately git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3179 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
9c92634388
commit
bc8b7d74eb
@ -107,6 +107,9 @@ CVS code -
|
|||||||
character as having the width of Unicode U+FFFD (Replacement
|
character as having the width of Unicode U+FFFD (Replacement
|
||||||
Character) instead of having a width of zero, since display
|
Character) instead of having a width of zero, since display
|
||||||
problems can crop up with the latter approach. (DLR)
|
problems can crop up with the latter approach. (DLR)
|
||||||
|
mbstrchr()
|
||||||
|
- Detect the case where the character isn't found in the string
|
||||||
|
more accurately. (DLR)
|
||||||
- cut.c:
|
- cut.c:
|
||||||
cut_line()
|
cut_line()
|
||||||
- Since placewewant will always be zero after the line is cut,
|
- Since placewewant will always be zero after the line is cut,
|
||||||
|
@ -852,7 +852,7 @@ char *mbstrchr(const char *s, char *c)
|
|||||||
|
|
||||||
free(s_mb);
|
free(s_mb);
|
||||||
|
|
||||||
if (ws != wc)
|
if (*s == '\0')
|
||||||
q = NULL;
|
q = NULL;
|
||||||
|
|
||||||
return (char *)q;
|
return (char *)q;
|
||||||
|
Loading…
Reference in New Issue
Block a user