diff options
Diffstat (limited to 'meta/recipes-extended/man/man/man-1.5i2-newline.patch')
-rw-r--r-- | meta/recipes-extended/man/man/man-1.5i2-newline.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-extended/man/man/man-1.5i2-newline.patch b/meta/recipes-extended/man/man/man-1.5i2-newline.patch new file mode 100644 index 0000000000..611df5d259 --- /dev/null +++ b/meta/recipes-extended/man/man/man-1.5i2-newline.patch | |||
@@ -0,0 +1,15 @@ | |||
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 | |||