fix bad cast when copying strings.

This commit is contained in:
Vitor Santos Costa 2011-03-07 22:10:20 +00:00
parent e98ba46ccb
commit 098e051e46
1 changed files with 1 additions and 1 deletions

View File

@ -762,7 +762,7 @@ ch_to_wide(char *base, char *charp)
return NULL;
}
for (i=n; i > 0; i--) {
nb[i-1] = base[i-1];
nb[i-1] = (unsigned char)base[i-1];
}
return nb+n;
}