From 6029281cc7eab83aaa97c71d9e2a1421e7e0a73e Mon Sep 17 00:00:00 2001 From: in2 Date: Thu, 19 Jun 2003 14:33:09 +0000 Subject: fix bug git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@946 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/edit.c | 4 ++-- 1 file 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); -- cgit v1.2.3