aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-23 10:23:49 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-03-23 10:23:49 +0000
commit071030190a7d45b6cca8cf71f9f513f4c12c50a1 (patch)
treeb8b5e9de3fc46cd01c03baf288386a01e6a48170 /src
parentf0314c16b1392a2021874136f80fd9350f16fe84 (diff)
fixed buffer overflow in conv_jistoeuc().
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@186 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/codeconv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codeconv.c b/src/codeconv.c
index 7273af40..cf6021d6 100644
--- a/src/codeconv.c
+++ b/src/codeconv.c
@@ -136,7 +136,7 @@ static gchar *conv_jistoeuc(const gchar *inbuf, gint *error)
JISState state = JIS_ASCII;
gint error_ = 0;
- outbuf = g_malloc(strlen(inbuf) + 1);
+ outbuf = g_malloc(strlen(inbuf) * 2 + 1);
out = outbuf;
while (*in != '\0') {