blob: 611df5d25943005e348b112bd2a14914cc3e4f8c [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001Upstream-Status: Pending
2
3Signed-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