Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | Signed-off-by: Scott Garman <scott.a.garman@intel.com> |
| 4 | |
| 5 | --- src/man.c 2008-12-21 19:17:31.000000000 +0100 |
| 6 | +++ src/man.c.oden 2008-12-21 19:17:38.000000000 +0100 |
| 7 | @@ -391,7 +391,7 @@ again: |
| 8 | beg++; |
| 9 | |
| 10 | end = beg; |
| 11 | - while (*end != ' ' && *end != '\t' && *end != '\n' && *end != '\0') |
| 12 | + while (*end != ' ' && *end != '\t' && *end != '\n' && *end != '\0' && (end-buf)<BUFSIZE) |
| 13 | end++; /* note that buf is NUL-terminated */ |
| 14 | *end = '\0'; |
| 15 | |