Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/mdocml/dist CID 1288941: Wrong sizeof



details:   https://anonhg.NetBSD.org/src/rev/19d9ef3a788c
branches:  trunk
changeset: 342753:19d9ef3a788c
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 07 19:51:40 2016 +0000

description:
CID 1288941: Wrong sizeof

diffstat:

 external/bsd/mdocml/dist/term.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 0987d42b1e52 -r 19d9ef3a788c external/bsd/mdocml/dist/term.c
--- a/external/bsd/mdocml/dist/term.c   Thu Jan 07 19:49:45 2016 +0000
+++ b/external/bsd/mdocml/dist/term.c   Thu Jan 07 19:51:40 2016 +0000
@@ -1,4 +1,4 @@
-/*     $Id: term.c,v 1.1.1.17 2015/12/17 21:58:48 christos Exp $ */
+/*     $Id: term.c,v 1.2 2016/01/07 19:51:40 christos Exp $ */
 /*
  * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
  * Copyright (c) 2010-2015 Ingo Schwarze <schwarze%openbsd.org@localhost>
@@ -358,7 +358,7 @@
        if (++p->fonti == p->fontsz) {
                p->fontsz += 8;
                p->fontq = mandoc_reallocarray(p->fontq,
-                   p->fontsz, sizeof(enum termfont *));
+                   p->fontsz, sizeof(*p->fontq));
        }
        p->fontq[p->fonti] = f;
 }



Home | Main Index | Thread Index | Old Index