Changeset View
Changeset View
Standalone View
Standalone View
head/sys/libkern/iconv_xlat16.c
Show First 20 Lines • Show All 262 Lines • ▼ Show 20 Lines | if (u || code & XLAT16_ACCEPT_NULL_OUT) { | ||||
or--; | or--; | ||||
} | } | ||||
if (inlen == 2) { | if (inlen == 2) { | ||||
/* | /* | ||||
* there is a case that inbuf char is a single | * there is a case that inbuf char is a single | ||||
* byte char while inlen == 2 | * byte char while inlen == 2 | ||||
*/ | */ | ||||
if ((u_char)*(src+1) == 0 && !nullin ) { | if ((u_char)*(src+1) == '\0' && !nullin ) { | ||||
src++; | src++; | ||||
ir--; | ir--; | ||||
} else { | } else { | ||||
src += 2; | src += 2; | ||||
ir -= 2; | ir -= 2; | ||||
} | } | ||||
} else { | } else { | ||||
src++; | src++; | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |