diff options
| author | Jerry Jelinek <jerry.jelinek@joyent.com> | 2019-02-05 12:55:26 +0000 |
|---|---|---|
| committer | Jerry Jelinek <jerry.jelinek@joyent.com> | 2019-02-05 12:55:26 +0000 |
| commit | fc7d1728f1b98070dfbbebfbb53b62279b33cfe2 (patch) | |
| tree | b241cde02240844b32b3c2b84b1b5bdd5f117448 /usr/src/lib/iconv_modules/common/utf8%ibm.c | |
| parent | b156585baf970b2e42dc1e9dc920784b85983ab1 (diff) | |
| parent | a6f5e66afa6ed3ba58a8adebd9096d051e369784 (diff) | |
| download | illumos-joyent-fc7d1728f1b98070dfbbebfbb53b62279b33cfe2.tar.gz | |
[illumos-gate merge]
commit a6f5e66afa6ed3ba58a8adebd9096d051e369784
10341 uts: boot_fb_eraseline_impl() may use uninitialized variable
commit a27563ebf538498a498f296db05c6cde1cd3e782
10332 uts: tem_safe_pix_clear_entire_screen() should use window offset
commit 6eda379352cafb14ed1d54166fe88b67fbefac4d
10315 acpi: NULL pointer errors
commit f642269fe771b10890afea92038f4531cd50cfd9
10313 iconv_modules: NULL pointer errors
commit 8d44205c2de6047b3104694e998664b7a1c527ab
10311 addbadsec: NULL pointer errors
commit de4cec4850ed6a4d4ee96e179e79e02a3d872ea3
10310 auditconfig: NULL pointer errors
commit 332e84f52cdee3d0232bd5ac5306c42177959c96
10309 mkstr: NULL pointer errors
commit 632cbd96e544a0a21f1a1f7ca071b145f379215d
10308 tset: NULL pointer errors
commit edd4c52697927997fb1ce3c2c4c425e5ca3a56d6
10307 chown: NULL pointer errors
commit 5243e3342f14ea9f300eadae1c8524571a933a1b
10305 print: NULL pointer errors
commit 4f6502b6d39d77ac4bfb06b65b8ef1bb89b010ba
10304 sysclass: cast between incompatible function types
commit 2325c4ff7eacda26747f8eb679e86fdaf23a7ff8
10303 audioconvert: ISO C++ forbids declaration of 'main' with no type
commit 941b7e9c849240e1a04a25b32722d30dae557dc3
10302 sed: this statement may fall through
commit b6e3994c8d3dda9030c4b653901b7d478245d3cb
10301 pcifm: cast between incompatible function types
Diffstat (limited to 'usr/src/lib/iconv_modules/common/utf8%ibm.c')
| -rw-r--r-- | usr/src/lib/iconv_modules/common/utf8%ibm.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/usr/src/lib/iconv_modules/common/utf8%ibm.c b/usr/src/lib/iconv_modules/common/utf8%ibm.c index c85e69306d..98bde56f83 100644 --- a/usr/src/lib/iconv_modules/common/utf8%ibm.c +++ b/usr/src/lib/iconv_modules/common/utf8%ibm.c @@ -29,7 +29,7 @@ #include <errno.h> #include <sys/types.h> -#include "tab_lookup.h" /* table lookup data types */ +#include "tab_lookup.h" /* table lookup data types */ #define MSB 0x80 /* most significant bit */ #define ONEBYTE 0xff /* right most byte */ @@ -261,13 +261,8 @@ unsigned long *ibm_code; * Return: > 0 - converted with enough space in output buffer * = 0 - no space in outbuf */ -int utf8_to_ibm(unidx, ibm_code, buf, buflen, st) -int unidx; -unsigned long ibm_code; -char *buf; -size_t buflen; -_icv_state *st; - +int utf8_to_ibm(int unidx, unsigned long ibm_code, char *buf, size_t buflen, + _icv_state *st) { unsigned long val; /* IBM value */ char c1, c2, ibm_str[3]; @@ -316,7 +311,7 @@ _icv_state *st; *buf = ibm_str[0] = c1; *(buf+1) = ibm_str[1] = c2; - ibm_str[2] = NULL; + ibm_str[2] = '\0'; #ifdef DEBUG fprintf(stderr, "\t->%x %x<-\n", *buf, *(buf+1)); |
