diff options
author | Chris Packham <judge.packham@gmail.com> | 2020-12-09 22:27:48 +1300 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2021-02-02 20:06:32 +1300 |
commit | 141f88a5f640625f63f70dad6f216a81596c42fc (patch) | |
tree | c4a01f6ede681a52683d5f8eb580bd19f279a6a8 /kconfig/lexer.l | |
parent | d057ba5324a082ba28d3b81f90405fae860bb376 (diff) | |
download | crosstool-ng-141f88a5f640625f63f70dad6f216a81596c42fc.tar.gz crosstool-ng-141f88a5f640625f63f70dad6f216a81596c42fc.tar.bz2 crosstool-ng-141f88a5f640625f63f70dad6f216a81596c42fc.zip |
kconfig: Sync with upstream v5.2
This commit introduces the following upstream changes:
8dde5715b280 kconfig: tests: fix recursive inclusion unit test
ec8f24b7faaf treewide: Add SPDX license identifier - Makefile/Kconfig
fc2694ec1ab7 kconfig: use 'else ifneq' for Makefile to improve readability
aff11cd983ec kconfig: Terminate menu blocks with a comment in the generated config
9cc342f6c4a0 treewide: prefix header search paths with $(srctree)/
9b9f5948afcd kconfig: make conf_get_autoconfig_name() static
b9d1a8e9302e kconfig: use snprintf for formatting pathnames
4cb726121e2c kconfig: remove useless NULL pointer check in conf_write_dep()
580c5b3e1b8b kconfig: make parent directories for the saved .config as needed
67424f61f813 kconfig: do not write .config if the content is the same
ceb7f3296ea1 kconfig: do not accept a directory for configuration output
65be755a5411 kconfig: remove trailing whitespaces
b63e37bc9ec4 kconfig: Make nconf-cfg.sh executable
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'kconfig/lexer.l')
-rw-r--r-- | kconfig/lexer.l | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kconfig/lexer.l b/kconfig/lexer.l index c9df1c8b..6354c905 100644 --- a/kconfig/lexer.l +++ b/kconfig/lexer.l @@ -378,7 +378,8 @@ FILE *zconf_fopen(const char *name) if (!f && name != NULL && name[0] != '/') { env = getenv(SRCTREE); if (env) { - sprintf(fullname, "%s/%s", env, name); + snprintf(fullname, sizeof(fullname), + "%s/%s", env, name); f = fopen(fullname, "r"); } } |