diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-14 18:06:20 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-14 18:06:20 +0000 |
commit | a3c8c0adec2ccf37ffe88fa542cd9db650aa31bf (patch) | |
tree | 15cabf6537a110ed2c3bd6f4f3ee296e4516344c /enc/trans/japanese.trans | |
parent | 2f67b43aeca4530842db1324983a0e7a563917cc (diff) |
* transcode_data.h: output function takes output buffer size.
* transcode.c: give output buffer size for output functions.
* enc/trans/newline.trans: follow the type change.
* enc/trans/escape.trans: ditto.
* enc/trans/utf_16_32.trans: ditto.
* enc/trans/iso2022.trans: ditto.
* enc/trans/japanese.trans: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enc/trans/japanese.trans')
-rw-r--r-- | enc/trans/japanese.trans | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/enc/trans/japanese.trans b/enc/trans/japanese.trans index 12321f587f..4af9b5387c 100644 --- a/enc/trans/japanese.trans +++ b/enc/trans/japanese.trans @@ -20,7 +20,7 @@ <%= transcode_generated_code %> static int -fun_so_eucjp2sjis(void *statep, const unsigned char *s, size_t l, unsigned char *o) +fun_so_eucjp2sjis(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize) { if (s[0] == 0x8e) { o[0] = s[1]; @@ -41,7 +41,7 @@ fun_so_eucjp2sjis(void *statep, const unsigned char *s, size_t l, unsigned char } static int -fun_so_sjis2eucjp(void *statep, const unsigned char *s, size_t l, unsigned char *o) +fun_so_sjis2eucjp(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize) { if (l == 1) { o[0] = '\x8e'; |