Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libterminfo Always copy the area buffer, even when the l...
details: https://anonhg.NetBSD.org/src/rev/b1bb2d59763e
branches: trunk
changeset: 341853:b1bb2d59763e
user: christos <christos%NetBSD.org@localhost>
date: Thu Nov 26 01:03:22 2015 +0000
description:
Always copy the area buffer, even when the length was the same
(from Rin Okuyama)
diffstat:
lib/libterminfo/term.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 619faa95571f -r b1bb2d59763e lib/libterminfo/term.c
--- a/lib/libterminfo/term.c Thu Nov 26 01:00:54 2015 +0000
+++ b/lib/libterminfo/term.c Thu Nov 26 01:03:22 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: term.c,v 1.18 2015/11/25 19:13:49 christos Exp $ */
+/* $NetBSD: term.c,v 1.19 2015/11/26 01:03:22 christos Exp $ */
/*
* Copyright (c) 2009, 2010, 2011 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: term.c,v 1.18 2015/11/25 19:13:49 christos Exp $");
+__RCSID("$NetBSD: term.c,v 1.19 2015/11/26 01:03:22 christos Exp $");
#include <sys/stat.h>
@@ -100,8 +100,8 @@
term->_area = realloc(term->_area, term->_arealen);
if (term->_area == NULL)
return -1;
- memcpy(term->_area, cap, term->_arealen);
}
+ memcpy(term->_area, cap, term->_arealen);
cap = term->_area;
len = le16dec(cap);
Home |
Main Index |
Thread Index |
Old Index