aboutsummaryrefslogtreecommitdiff
path: root/src/codeconv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/codeconv.c')
-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') {