summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2005-01-20 09:33:48 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2005-01-20 09:33:48 +0000
commit92e5df24efdde41310d131b849e1b9ebceb7551a (patch)
tree76b45210ca570d3e33462f688eda32a3de29337f /scripts/kconfig
parentaac4bf57df6bdbb2aa6d63e0dd9791d8619811cd (diff)
downloadptxdist-92e5df24efdde41310d131b849e1b9ebceb7551a.tar.gz
ptxdist-92e5df24efdde41310d131b849e1b9ebceb7551a.tar.xz
fix pointer arithmetic
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-0.7-trunk@2211 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/kconfig')
-rw-r--r--scripts/kconfig/confdata.c6
1 files changed, 3 insertions, 3 deletions
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;