Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Fix memset usage.
details: https://anonhg.NetBSD.org/src/rev/591009ffe96d
branches: trunk
changeset: 766709:591009ffe96d
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Jul 01 01:19:33 2011 +0000
description:
Fix memset usage.
diffstat:
lib/libcurses/addbytes.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c1ff9356921f -r 591009ffe96d lib/libcurses/addbytes.c
--- a/lib/libcurses/addbytes.c Fri Jul 01 01:15:27 2011 +0000
+++ b/lib/libcurses/addbytes.c Fri Jul 01 01:19:33 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: addbytes.c,v 1.38 2010/12/16 17:42:28 wiz Exp $ */
+/* $NetBSD: addbytes.c,v 1.39 2011/07/01 01:19:33 joerg Exp $ */
/*
* Copyright (c) 1987, 1993, 1994
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)addbytes.c 8.4 (Berkeley) 5/4/94";
#else
-__RCSID("$NetBSD: addbytes.c,v 1.38 2010/12/16 17:42:28 wiz Exp $");
+__RCSID("$NetBSD: addbytes.c,v 1.39 2011/07/01 01:19:33 joerg Exp $");
#endif
#endif /* not lint */
@@ -157,7 +157,7 @@
/* not a valid conversion just eat a char */
wc = *bytes;
n = 1;
- (void)memset(&st, 0, sizeof(&st));
+ (void)memset(&st, 0, sizeof(st));
} else if (wc == 0) {
break;
}
Home |
Main Index |
Thread Index |
Old Index