Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Copy correct size of 1 line when doing insert/...
details: https://anonhg.NetBSD.org/src/rev/af1c739c5d4f
branches: trunk
changeset: 550085:af1c739c5d4f
user: dsl <dsl%NetBSD.org@localhost>
date: Tue Jul 29 16:42:55 2003 +0000
description:
Copy correct size of 1 line when doing insert/delete line on a subwin.
diffstat:
lib/libcurses/insdelln.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (38 lines):
diff -r 185b6d4c6ead -r af1c739c5d4f lib/libcurses/insdelln.c
--- a/lib/libcurses/insdelln.c Tue Jul 29 16:18:54 2003 +0000
+++ b/lib/libcurses/insdelln.c Tue Jul 29 16:42:55 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: insdelln.c,v 1.9 2003/02/17 11:07:20 dsl Exp $ */
+/* $NetBSD: insdelln.c,v 1.10 2003/07/29 16:42:55 dsl Exp $ */
/*
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: insdelln.c,v 1.9 2003/02/17 11:07:20 dsl Exp $");
+__RCSID("$NetBSD: insdelln.c,v 1.10 2003/07/29 16:42:55 dsl Exp $");
#endif /* not lint */
/*
@@ -107,8 +107,7 @@
} else {
(void) memcpy(win->lines[y + lines]->line,
win->lines[y]->line,
- (size_t) win->maxx * __LDATASIZE * lines);
- temp = win->lines[y];
+ (size_t) win->maxx * __LDATASIZE);
}
}
for (y = win->cury - 1 + lines; y >= win->cury; --y)
@@ -144,8 +143,7 @@
} else {
(void) memcpy(win->lines[y]->line,
win->lines[y + lines]->line,
- (size_t) win->maxx * __LDATASIZE * lines);
- temp = win->lines[y + lines];
+ (size_t) win->maxx * __LDATASIZE);
}
}
for (y = last - lines; y < last; y++)
Home |
Main Index |
Thread Index |
Old Index