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 1288962: lim was never incremen...



details:   https://anonhg.NetBSD.org/src/rev/fd520bee6ffc
branches:  trunk
changeset: 342749:fd520bee6ffc
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 07 19:32:43 2016 +0000

description:
CID 1288962: lim was never incremented thus self-definition loop detection
was not functional.

diffstat:

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

diffs (17 lines):

diff -r 66dacb9384e3 -r fd520bee6ffc external/bsd/mdocml/dist/eqn.c
--- a/external/bsd/mdocml/dist/eqn.c    Thu Jan 07 16:10:49 2016 +0000
+++ b/external/bsd/mdocml/dist/eqn.c    Thu Jan 07 19:32:43 2016 +0000
@@ -1,4 +1,4 @@
-/*     $Id: eqn.c,v 1.1.1.4 2015/12/17 21:58:48 christos Exp $ */
+/*     $Id: eqn.c,v 1.2 2016/01/07 19:32:43 christos Exp $ */
 /*
  * Copyright (c) 2011, 2014 Kristaps Dzonsons <kristaps%bsd.lv@localhost>
  * Copyright (c) 2014, 2015 Ingo Schwarze <schwarze%openbsd.org@localhost>
@@ -448,6 +448,7 @@
                memmove(start + *sz + diff, start + *sz,
                    (strlen(start) - *sz) + 1);
                memcpy(start, def->val, def->valsz);
+               lim++;
                goto again;
        }
 



Home | Main Index | Thread Index | Old Index