M7350/oe-core/meta/recipes-extended/man/man-1.6f/man-1.5i2-newline.patch

16 lines
484 B
Diff
Raw Normal View History

2024-09-09 08:52:07 +00:00
Upstream-Status: Pending
Signed-off-by: Scott Garman <scott.a.garman@intel.com>
--- src/man.c 2008-12-21 19:17:31.000000000 +0100
+++ src/man.c.oden 2008-12-21 19:17:38.000000000 +0100
@@ -391,7 +391,7 @@ again:
beg++;
end = beg;
- while (*end != ' ' && *end != '\t' && *end != '\n' && *end != '\0')
+ while (*end != ' ' && *end != '\t' && *end != '\n' && *end != '\0' && (end-buf)<BUFSIZE)
end++; /* note that buf is NUL-terminated */
*end = '\0';