diff options
Diffstat (limited to 'lib9/utfecpy.c')
| -rw-r--r-- | lib9/utfecpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib9/utfecpy.c b/lib9/utfecpy.c index 8ccb841c..3a5e6b4c 100644 --- a/lib9/utfecpy.c +++ b/lib9/utfecpy.c @@ -9,7 +9,7 @@ utfecpy(char *to, char *e, char *from) return to; end = memccpy(to, from, '\0', e - to); if(end == nil){ - end = e-1; + end = e; while(end>to && (*--end&0xC0)==0x80) ; *end = '\0'; |
