From 92e5df24efdde41310d131b849e1b9ebceb7551a Mon Sep 17 00:00:00 2001 From: Robert Schwebel Date: Thu, 20 Jan 2005 09:33:48 +0000 Subject: fix pointer arithmetic git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2211 33e552b5-05e3-0310-8538-816dae2090ed --- scripts/kconfig/confdata.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/kconfig') diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c index 3884291d2..2b8b52a19 100644 --- a/scripts/kconfig/confdata.c +++ b/scripts/kconfig/confdata.c @@ -118,13 +118,13 @@ int conf_read(const char *name) case '#': if (memcmp(line + 2, CFGSYM, CFGSYMLEN)) continue; - p = strchr(line + CFGSYMLEN+3, ' '); + p = strchr(line + CFGSYMLEN + 2, ' '); if (!p) continue; *p++ = 0; - if (strncmp(p, "is not set", CFGSYMLEN+3)) + if (strncmp(p, "is not set", 10)) continue; - sym = sym_find(line + CFGSYMLEN+3); + sym = sym_find(line + CFGSYMLEN+2); if (!sym) { fprintf(stderr, "%s:%d: trying to assign nonexistent symbol %s\n", name, lineno, line + CFGSYMLEN+2); break; -- cgit v1.2.3