Sophie

Sophie

distrib > Mageia > 2 > i586 > media > core-release-src > by-pkgid > 6078044855492bf58378d0e4e81a7bf4 > files > 6

man-1.6g-6.mga2.src.rpm

--- 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';