several fixes
This commit is contained in:
parent
b1babd4b88
commit
75ca07fc8c
3 changed files with 38 additions and 7 deletions
|
|
@ -190,7 +190,7 @@ int sj4_from_utf16(u_char* out, const u_char* in, int len) {
|
|||
out += eucjp_write(out, n);
|
||||
}
|
||||
|
||||
return (out - o_out) * sizeof(wchar_t);
|
||||
return out - o_out;
|
||||
}
|
||||
|
||||
static u_int eucjp_read(const u_char* in) {
|
||||
|
|
@ -287,7 +287,7 @@ int sj4_to_utf16(u_char* out, const u_char* in, int len) {
|
|||
}
|
||||
}
|
||||
|
||||
return (w_out - o_out) * sizeof(wchar_t);
|
||||
return w_out - o_out;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue