summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-04-10 14:01:28 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-04-10 14:01:28 +0800
commitd93d125daa5cdd83714b90ea2cf7d8b43a9bbf07 (patch)
treea2dc6d0f07ed1e6481682a96030ab7d52bbe3726
parentc9c918fa86d614c71ce3d8af41e116ac2febb055 (diff)
downloadpttbbs-d93d125daa5cdd83714b90ea2cf7d8b43a9bbf07.tar
pttbbs-d93d125daa5cdd83714b90ea2cf7d8b43a9bbf07.tar.gz
pttbbs-d93d125daa5cdd83714b90ea2cf7d8b43a9bbf07.tar.bz2
pttbbs-d93d125daa5cdd83714b90ea2cf7d8b43a9bbf07.tar.lz
pttbbs-d93d125daa5cdd83714b90ea2cf7d8b43a9bbf07.tar.xz
pttbbs-d93d125daa5cdd83714b90ea2cf7d8b43a9bbf07.tar.zst
pttbbs-d93d125daa5cdd83714b90ea2cf7d8b43a9bbf07.zip
dirty fix. would this cause memory leak?
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@785 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/edit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 731f5177..f3dce0b2 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -1,4 +1,4 @@
-/* $Id: edit.c,v 1.29 2003/04/10 05:43:44 in2 Exp $ */
+/* $Id: edit.c,v 1.30 2003/04/10 06:01:28 in2 Exp $ */
#include "bbs.h"
typedef struct textline_t {
struct textline_t *prev;
@@ -2208,6 +2208,10 @@ vedit(char *fpath, int saveheader, int *islocal)
currln--;
currline = currline->prev;
currline = adjustline(currline, WRAPMARGIN);
+
+ // dirty fix. would this cause memory leak?
+ oldcurrline = currline;
+
currpnt = currline->len;
redraw_everything = YEA;
if (*killsp(currline->next->data) == '\0') {