diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2019-02-17 01:48:55 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2019-02-17 01:48:55 +0000 |
commit | d0b0df2efdc844eb4f396115267cabbc23b7f99a (patch) | |
tree | 1caf4d8b85c79710064296f39348cfe94a92f23f /Build/source/texk/upmendex/sort.c | |
parent | 38a55d73bd3eadf7d3ec5f286426446e1b8bdd3e (diff) |
upmendex version 0.52
git-svn-id: svn://tug.org/texlive/trunk@50040 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/upmendex/sort.c')
-rw-r--r-- | Build/source/texk/upmendex/sort.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Build/source/texk/upmendex/sort.c b/Build/source/texk/upmendex/sort.c index 54597923efb..5d11a0727c0 100644 --- a/Build/source/texk/upmendex/sort.c +++ b/Build/source/texk/upmendex/sort.c @@ -311,21 +311,21 @@ static int get_charset_juncture(UChar *str) static int unescape(const unsigned char *src, UChar *dist) { int i,j,k; - unsigned char tmp[STYBUFSIZE]; + char tmp[STYBUFSIZE]; for (i=j=0;i<STYBUFSIZE;i++) { if (src[i]=='\0') { return i; } else if (src[i]< 0x80 && (src[i+1]>=0x80 || src[i+1]=='\0')) { - strncpy(tmp,&src[j],i-j+1); + strncpy(tmp,(char *)&src[j],i-j+1); tmp[i-j+1]='\0'; k=u_strlen(dist); u_unescape(tmp, &dist[k], STYBUFSIZE-k); j=i+1; } else if (src[i]>=0x80 && (src[i+1]< 0x80 || src[i+1]=='\0')) { - strncpy(tmp,&src[j],i-j+1); + strncpy(tmp,(char *)&src[j],i-j+1); tmp[i-j+1]='\0'; k=u_strlen(dist); multibyte_to_widechar(&dist[k], STYBUFSIZE-k, tmp); |