=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/roff.c,v retrieving revision 1.83 retrieving revision 1.84 diff -u -r1.83 -r1.84 --- src/usr.bin/mandoc/roff.c 2014/06/25 00:19:17 1.83 +++ src/usr.bin/mandoc/roff.c 2014/06/29 21:19:34 1.84 @@ -1,4 +1,4 @@ -/* $Id: roff.c,v 1.83 2014/06/25 00:19:17 schwarze Exp $ */ +/* $Id: roff.c,v 1.84 2014/06/29 21:19:34 schwarze Exp $ */ /* * Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons * Copyright (c) 2010-2014 Ingo Schwarze @@ -2064,7 +2064,8 @@ /* Search for an existing string with the same name. */ n = *r; - while (n && strcmp(name, n->key.p)) + while (n && (namesz != n->key.sz || + strncmp(n->key.p, name, namesz))) n = n->next; if (NULL == n) {