Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/infocmp CID 1356387: Wrong sizeof
details: https://anonhg.NetBSD.org/src/rev/9312aca1b26c
branches: trunk
changeset: 344192:9312aca1b26c
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 16 21:01:28 2016 +0000
description:
CID 1356387: Wrong sizeof
diffstat:
usr.bin/infocmp/infocmp.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b0e59e588a03 -r 9312aca1b26c usr.bin/infocmp/infocmp.c
--- a/usr.bin/infocmp/infocmp.c Wed Mar 16 21:00:37 2016 +0000
+++ b/usr.bin/infocmp/infocmp.c Wed Mar 16 21:01:28 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: infocmp.c,v 1.10 2016/03/09 20:02:33 christos Exp $ */
+/* $NetBSD: infocmp.c,v 1.11 2016/03/16 21:01:28 christos Exp $ */
/*
* Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: infocmp.c,v 1.10 2016/03/09 20:02:33 christos Exp $");
+__RCSID("$NetBSD: infocmp.c,v 1.11 2016/03/16 21:01:28 christos Exp $");
#include <sys/ioctl.h>
@@ -506,7 +506,7 @@
TERMUSERDEF *ud, *tud;
size_t i, j, agree, absent, data;
- terms = ecalloc(nuse, sizeof(**terms));
+ terms = ecalloc(nuse, sizeof(*terms));
for (i = 0; i < nuse; i++) {
if (strcmp(term->name, *uterms) == 0)
errx(EXIT_FAILURE, "cannot use same terminal");
Home |
Main Index |
Thread Index |
Old Index