diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-23 17:10:10 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-05-23 17:10:10 +0800 |
commit | 2acbcc9a00bd3215b13952438a359d7bec0cf96b (patch) | |
tree | 5ece13eea56668825aa54e1c59be9995a7437e51 | |
parent | e15c926444f03008570999e716d0d0168c21e055 (diff) | |
download | pttbbs-2acbcc9a00bd3215b13952438a359d7bec0cf96b.tar pttbbs-2acbcc9a00bd3215b13952438a359d7bec0cf96b.tar.gz pttbbs-2acbcc9a00bd3215b13952438a359d7bec0cf96b.tar.bz2 pttbbs-2acbcc9a00bd3215b13952438a359d7bec0cf96b.tar.lz pttbbs-2acbcc9a00bd3215b13952438a359d7bec0cf96b.tar.xz pttbbs-2acbcc9a00bd3215b13952438a359d7bec0cf96b.tar.zst pttbbs-2acbcc9a00bd3215b13952438a359d7bec0cf96b.zip |
memory leak: forgot a static! thanks to kcwu
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2731 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/convert.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |