summaryrefslogtreecommitdiffstats
path: root/usr.bin/indent
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2014-06-22 20:24:17 +0000
committerpfg <pfg@FreeBSD.org>2014-06-22 20:24:17 +0000
commit031b23ab3197da29793c53cf3524652fba44ddfc (patch)
tree7416d09f80eb3d69c3293f368c3e02920e384d19 /usr.bin/indent
parent0d8805deb240bfb4e7242c264b24ce5065fb4e27 (diff)
downloadFreeBSD-src-031b23ab3197da29793c53cf3524652fba44ddfc.zip
FreeBSD-src-031b23ab3197da29793c53cf3524652fba44ddfc.tar.gz
MFC r267490:
patch: unsign the line length to avoid overflows. Patch(1) uses a short int for the line length, which is usually sufficient for regular diffs, but makes no effort to signal when there is an overflow. Change the line length to an unsigned short int to better use the fact that a length is never negative. The change is loosely inspired on a related change in DragonFly, but we avoid spending more memory than necessary. While here adjust the messages to be clearer on what is happening.
Diffstat (limited to 'usr.bin/indent')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud