#
267746 |
|
22-Jun-2014 |
pfg |
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.
|
#
265160 |
|
30-Apr-2014 |
pfg |
MFC r264581, r264744:
Various style(9) fixes and typos in printf, grep, sort and patch.
#define should be followed by a tab.
|
#
267746 |
|
22-Jun-2014 |
pfg |
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.
|
#
265160 |
|
30-Apr-2014 |
pfg |
MFC r264581, r264744:
Various style(9) fixes and typos in printf, grep, sort and patch.
#define should be followed by a tab.
|