diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-22 13:54:04 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2021-08-22 14:02:22 -0700 |
commit | dadc7f231f524b08a2d6497d55e702ef418c0b60 (patch) | |
tree | 8bdb6e0cb74d69e312c027aa55c0a72215be82a4 /bootstrap.conf | |
parent | 31226b9bbeadc32389a2e399f81fd0265ac88a57 (diff) | |
download | diffutils-dadc7f231f524b08a2d6497d55e702ef418c0b60.tar.gz |
diff: avoid sprintf %s
sprintf fails if the result contains more than INT_MAX bytes,
so rework the code to avoid usage of sprintf %s where the
string might be longer than that.
* bootstrap.conf (gnulib_modules): Remove xvasprintf.
* src/diff.c (specify_style):
* src/util.c (begin_output):
Rewrite to avoid sprintf %s.
* src/util.c: Do not include xvasprintf.h.
(concat): Remove, as it uses sprintf %s. All uses rewritten.
Diffstat (limited to 'bootstrap.conf')
-rw-r--r-- | bootstrap.conf | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/bootstrap.conf b/bootstrap.conf index b3c39e6..6560e9a 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -93,7 +93,6 @@ xmalloca xreadlink xstdopen xstrtoimax -xvasprintf ' # Additional xgettext options to use. Use "\\\newline" to break lines. |