Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/compat/gen Fix memcpy usage.
details: https://anonhg.NetBSD.org/src/rev/5fa3f4b737d1
branches: trunk
changeset: 766707:5fa3f4b737d1
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Jul 01 01:08:59 2011 +0000
description:
Fix memcpy usage.
diffstat:
lib/libc/compat/gen/compat_utmpx.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r b4884d1b8dea -r 5fa3f4b737d1 lib/libc/compat/gen/compat_utmpx.c
--- a/lib/libc/compat/gen/compat_utmpx.c Thu Jun 30 23:28:03 2011 +0000
+++ b/lib/libc/compat/gen/compat_utmpx.c Fri Jul 01 01:08:59 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: compat_utmpx.c,v 1.3 2009/01/11 02:46:25 christos Exp $ */
+/* $NetBSD: compat_utmpx.c,v 1.4 2011/07/01 01:08:59 joerg Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: compat_utmpx.c,v 1.3 2009/01/11 02:46:25 christos Exp $");
+__RCSID("$NetBSD: compat_utmpx.c,v 1.4 2011/07/01 01:08:59 joerg Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -79,7 +79,7 @@
{
(void)memcpy(ll->ll_line, ll50->ll_line, sizeof(ll->ll_line));
(void)memcpy(ll->ll_host, ll50->ll_host, sizeof(ll->ll_host));
- (void)memcpy(&ll->ll_ss, &ll50->ll_ss, sizeof(&ll->ll_ss));
+ (void)memcpy(&ll->ll_ss, &ll50->ll_ss, sizeof(ll->ll_ss));
timeval50_to_timeval(&ll50->ll_tv, &ll->ll_tv);
}
@@ -88,7 +88,7 @@
{
(void)memcpy(ll50->ll_line, ll->ll_line, sizeof(ll50->ll_line));
(void)memcpy(ll50->ll_host, ll->ll_host, sizeof(ll50->ll_host));
- (void)memcpy(&ll50->ll_ss, &ll->ll_ss, sizeof(&ll50->ll_ss));
+ (void)memcpy(&ll50->ll_ss, &ll->ll_ss, sizeof(ll50->ll_ss));
timeval_to_timeval50(&ll->ll_tv, &ll50->ll_tv);
}
Home |
Main Index |
Thread Index |
Old Index