diff options
author | pfg <pfg@FreeBSD.org> | 2014-06-22 20:24:17 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2014-06-22 20:24:17 +0000 |
commit | 031b23ab3197da29793c53cf3524652fba44ddfc (patch) | |
tree | 7416d09f80eb3d69c3293f368c3e02920e384d19 /usr.bin/indent | |
parent | 0d8805deb240bfb4e7242c264b24ce5065fb4e27 (diff) | |
download | FreeBSD-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