Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/csh CID 1060854: Wrong sizeof argument (SIZEOF_MISMATCH)
details: https://anonhg.NetBSD.org/src/rev/b065b9e2a0ef
branches: trunk
changeset: 789069:b065b9e2a0ef
user: christos <christos%NetBSD.org@localhost>
date: Tue Aug 06 05:42:43 2013 +0000
description:
CID 1060854: Wrong sizeof argument (SIZEOF_MISMATCH)
diffstat:
bin/csh/lex.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 39258f69f58d -r b065b9e2a0ef bin/csh/lex.c
--- a/bin/csh/lex.c Tue Aug 06 05:41:38 2013 +0000
+++ b/bin/csh/lex.c Tue Aug 06 05:42:43 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lex.c,v 1.30 2013/07/16 17:47:43 christos Exp $ */
+/* $NetBSD: lex.c,v 1.31 2013/08/06 05:42:43 christos Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)lex.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: lex.c,v 1.30 2013/07/16 17:47:43 christos Exp $");
+__RCSID("$NetBSD: lex.c,v 1.31 2013/08/06 05:42:43 christos Exp $");
#endif
#endif /* not lint */
@@ -1495,7 +1495,7 @@
}
if (c > 0)
(void)memcpy(fbuf[buf] + off, ttyline,
- (size_t)c * sizeof(*fbuf));
+ (size_t)c * sizeof(**fbuf));
numleft = 0;
}
else {
Home |
Main Index |
Thread Index |
Old Index