From 2acbcc9a00bd3215b13952438a359d7bec0cf96b Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 23 May 2005 09:10:10 +0000 Subject: memory leak: forgot a static! thanks to kcwu git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2731 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/convert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbbsd/convert.c b/mbbsd/convert.c index a7e1ff31..1c390ac3 100644 --- a/mbbsd/convert.c +++ b/mbbsd/convert.c @@ -59,7 +59,7 @@ utf8_write(int fd, void *buf, size_t count) { int icount = (int)count; static char *mybuf = NULL; - int cmybuf = 0; + static int cmybuf = 0; /* utf8 output is a special case because * we need larger buffer which can be -- cgit v1.2.3