summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-14 19:10:10 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-03-14 19:10:10 +0800
commit0cefa7dbe0950d08788a16999f7f6dda888c0e80 (patch)
treeab5332d2bf50b9a6236d06982005e0c47a287f67
parent273b37ad5f3bacb0eafe2a5b113e01be4021099e (diff)
downloadpttbbs-0cefa7dbe0950d08788a16999f7f6dda888c0e80.tar
pttbbs-0cefa7dbe0950d08788a16999f7f6dda888c0e80.tar.gz
pttbbs-0cefa7dbe0950d08788a16999f7f6dda888c0e80.tar.bz2
pttbbs-0cefa7dbe0950d08788a16999f7f6dda888c0e80.tar.lz
pttbbs-0cefa7dbe0950d08788a16999f7f6dda888c0e80.tar.xz
pttbbs-0cefa7dbe0950d08788a16999f7f6dda888c0e80.tar.zst
pttbbs-0cefa7dbe0950d08788a16999f7f6dda888c0e80.zip
fix bug of reading buffer
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2624 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/announce.c9
-rw-r--r--mbbsd/edit.c1
2 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c
index 84e89ad2..7c2954ec 100644
--- a/mbbsd/announce.c
+++ b/mbbsd/announce.c
@@ -13,11 +13,12 @@ static struct CopyTmp *copytmp;
void
a_copyitem(char *fpath, char *title, char *owner, int mode)
{
- if(copytmp == NULL)
- copytmp = (struct CopyTmp*)malloc(sizeof(struct CopyTmp));
if(copytmp == NULL) {
- if(mode) vmsg("«þ¨©¥¢±Ñ");
- return;
+ copytmp = (struct CopyTmp*)malloc(sizeof(struct CopyTmp));
+ if(copytmp == NULL) {
+ if(mode) vmsg("«þ¨©¥¢±Ñ");
+ return;
+ }
}
memset(copytmp, 0, sizeof(struct CopyTmp));
diff --git a/mbbsd/edit.c b/mbbsd/edit.c
index 390e3d30..12524430 100644
--- a/mbbsd/edit.c
+++ b/mbbsd/edit.c
@@ -2578,6 +2578,7 @@ vedit(char *fpath, int saveheader, int *islocal)
else
return tmp;
}
+ oldcurrline = curr_buf->currline;
curr_buf->redraw_everything = YEA;
break;
case Ctrl('W'):