/usr/src/sbin/routed/parms.c and .../routed/rtquery/rtquery.c both
contain code that compare a char pointer with a char. As this doesn't make much sense, it looks very much as if a '*' has been dropped by mistake. I have made no analysis of the possible consequences of the problem. PR: 7319 Reviewed by: phk Submitted by: Anders Thulin <Anders.X.Thulin@telia.se>
This commit is contained in:
parent
63322c283d
commit
6f48600e53
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37815
@ -36,7 +36,7 @@ static char sccsid[] = "@(#)if.c 8.1 (Berkeley) 6/5/93";
|
||||
#elif defined(__NetBSD__)
|
||||
static char rcsid[] = "$NetBSD$";
|
||||
#endif
|
||||
#ident "$Revision: 1.1.1.3 $"
|
||||
#ident "$Revision: 1.2 $"
|
||||
|
||||
#include "defs.h"
|
||||
#include "pathnames.h"
|
||||
@ -376,7 +376,7 @@ parse_quote(char **linep,
|
||||
if (c == '\0')
|
||||
break;
|
||||
|
||||
if (c == '\\' && pc != '\0') {
|
||||
if (c == '\\' && *pc != '\0') {
|
||||
if ((c = *pc++) == 'n') {
|
||||
c = '\n';
|
||||
} else if (c == 'r') {
|
||||
|
@ -42,7 +42,7 @@ static const char copyright[] =
|
||||
static char sccsid[] = "@(#)query.c 8.1 (Berkeley) 6/5/93";
|
||||
#endif
|
||||
static const char rcsid[] =
|
||||
"$Id$";
|
||||
"$Id: rtquery.c,v 1.7 1998/01/14 07:17:12 charnier Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -797,7 +797,7 @@ parse_quote(char **linep,
|
||||
if (c == '\0')
|
||||
break;
|
||||
|
||||
if (c == '\\' && pc != '\0') {
|
||||
if (c == '\\' && *pc != '\0') {
|
||||
if ((c = *pc++) == 'n') {
|
||||
c = '\n';
|
||||
} else if (c == 'r') {
|
||||
|
Loading…
Reference in New Issue
Block a user