diff options
| author | Charles.Forsyth <devnull@localhost> | 2006-12-23 00:30:12 +0000 |
|---|---|---|
| committer | Charles.Forsyth <devnull@localhost> | 2006-12-23 00:30:12 +0000 |
| commit | 6e425a9de8c003b5a733621a6b6730ec3cc902b8 (patch) | |
| tree | 314123bcab78ff295f38f85f31dc141e5fe22d15 /libkern/utfecpy.c | |
| parent | 74a4d8c26dd3c1e9febcb717cfd6cb6512991a7a (diff) | |
20061220
Diffstat (limited to 'libkern/utfecpy.c')
| -rw-r--r-- | libkern/utfecpy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkern/utfecpy.c b/libkern/utfecpy.c index 8ccb841c..3a5e6b4c 100644 --- a/libkern/utfecpy.c +++ b/libkern/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'; |
