summaryrefslogtreecommitdiff
path: root/Build/source/texk/upmendex/sort.c
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/upmendex/sort.c')
-rw-r--r--Build/source/texk/upmendex/sort.c6
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);