From aa3de73bd894432bb78a8b652accef7e4b332922 Mon Sep 17 00:00:00 2001 From: mogami Date: Thu, 24 Jan 2002 08:38:23 +0000 Subject: [PATCH] =?utf8?q?=E3=81=9A=E3=81=A3=E3=81=A8=E5=89=8D=E3=81=AB?= =?utf8?q?=E7=9B=B4=E3=81=97=E3=81=9F=E3=81=AF=E3=81=9A=E3=81=AE=E3=83=90?= =?utf8?q?=E3=82=B0=E3=80=82mb=5Fstrlcpy()=E3=81=A7=E3=80=81=E3=82=B3?= =?utf8?q?=E3=83=94=E3=83=BC=E5=85=83=E3=81=8C=E6=BC=A2=E5=AD=97=E3=81=8B?= =?utf8?q?=E3=81=A9=E3=81=86=E3=81=8B=E3=81=A7=E6=9D=A1=E4=BB=B6=E5=88=86?= =?utf8?q?=E5=B2=90=E3=81=99=E3=82=8B=20=E3=81=AF=E3=81=9A=E3=81=AE?= =?utf8?q?=E3=81=A8=E3=81=93=E3=82=8D=E3=82=92=E3=81=BE=E3=81=A0=E6=9B=B8?= =?utf8?q?=E3=81=8D=E8=BE=BC=E3=82=93=E3=81=A7=E3=81=AA=E3=81=84=E3=82=B3?= =?utf8?q?=E3=83=94=E3=83=BC=E5=85=88=E3=81=A7=20iskanji()=20=E3=82=92?= =?utf8?q?=E8=A6=8B=E3=81=A6=E3=82=8B=E3=81=A8=E3=81=84=E3=81=86=E3=82=A2?= =?utf8?q?=E3=83=9B=E3=81=AA=E3=83=90=E3=82=B0=E4=BF=AE=E6=AD=A3=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/japanese.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/japanese.c b/src/japanese.c index 5c92d7a28..9f9b09767 100644 --- a/src/japanese.c +++ b/src/japanese.c @@ -153,8 +153,8 @@ size_t mb_strlcpy(char *dst, const char *src, size_t size) /* Copy as many bytes as will fit */ while(n < size) { - if (iskanji(*d)) { - if(n + 2 >= size || !*(d+1)) break; + if (iskanji(*s)) { + if(n + 2 >= size || !*(s+1)) break; *d++ = *s++; *d++ = *s++; n += 2; -- 2.11.0