projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kconfig: convert to SPDX License Identifier
[carl9170fw.git]
/
config
/
preprocess.c
diff --git
a/config/preprocess.c
b/config/preprocess.c
index 65da87fce907ad2bc7b52adba4651dc2c32786be..b028a48b0e761f491f90e29df43b6975f5a0a757 100644
(file)
--- a/
config/preprocess.c
+++ b/
config/preprocess.c
@@
-156,7
+156,7
@@
static char *do_shell(int argc, char *argv[])
nread--;
/* remove trailing new lines */
nread--;
/* remove trailing new lines */
- while (buf[nread - 1] == '\n')
+ while (
nread > 0 &&
buf[nread - 1] == '\n')
nread--;
buf[nread] = 0;
nread--;
buf[nread] = 0;
@@
-555,8
+555,7
@@
char *expand_string(const char *in)
static bool is_end_of_token(char c)
{
static bool is_end_of_token(char c)
{
- /* Why are '.' and '/' valid characters for symbols? */
- return !(isalnum(c) || c == '_' || c == '-' || c == '.' || c == '/');
+ return !(isalnum(c) || c == '_' || c == '-');
}
/*
}
/*