diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-19 22:33:09 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-06-19 22:33:09 +0800 |
commit | 6029281cc7eab83aaa97c71d9e2a1421e7e0a73e (patch) | |
tree | 6c6a9a95a3902fbc3befb77fc0800ec57a0c972d /mbbsd | |
parent | 2338fc576c1434ffc77799d7f70ab35b282d7126 (diff) | |
download | pttbbs-6029281cc7eab83aaa97c71d9e2a1421e7e0a73e.tar pttbbs-6029281cc7eab83aaa97c71d9e2a1421e7e0a73e.tar.gz pttbbs-6029281cc7eab83aaa97c71d9e2a1421e7e0a73e.tar.bz2 pttbbs-6029281cc7eab83aaa97c71d9e2a1421e7e0a73e.tar.lz pttbbs-6029281cc7eab83aaa97c71d9e2a1421e7e0a73e.tar.xz pttbbs-6029281cc7eab83aaa97c71d9e2a1421e7e0a73e.tar.zst pttbbs-6029281cc7eab83aaa97c71d9e2a1421e7e0a73e.zip |
fix bug
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@946 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 5621ef3f..f9578db0 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1,4 +1,4 @@ -/* $Id: edit.c,v 1.31 2003/05/27 07:53:41 in2 Exp $ */ +/* $Id: edit.c,v 1.32 2003/06/19 14:33:09 in2 Exp $ */ #include "bbs.h" typedef struct textline_t { struct textline_t *prev; @@ -270,7 +270,7 @@ adjustline(textline_t *oldp, short len) { textline_t tmpl[sizeof(textline_t) + WRAPMARGIN]; textline_t *newp; - memcpy(tmpl, oldp, len + sizeof(textline_t)); + memcpy(tmpl, oldp, oldp->len + sizeof(textline_t)); free(oldp); newp = alloc_line(len); |