PERFORCE change 214610 for review

Brooks Davis brooks at FreeBSD.org
Thu Jul 19 15:31:38 UTC 2012


http://p4web.freebsd.org/@@214610?ac=10

Change 214610 by brooks at brooks_ecr_current on 2012/07/19 15:30:46

	The data written by the child is not NUL terminated so keep all
	the bytes.  This fixes image viewing in capsicum mode.

Affected files ...

.. //depot/projects/ctsrd/beribsd/src/ctsrd/browser/browser.c#14 edit

Differences ...

==== //depot/projects/ctsrd/beribsd/src/ctsrd/browser/browser.c#14 (text+ko) ====

@@ -413,7 +413,7 @@
 					return "unknown";
 				/* Don't trust the result */
 				desc = buf + rlen;
-				strvisx(desc, buf, rlen - 1, 0);
+				strvisx(desc, buf, rlen, 0);
 				return (desc);
 			}
 		}


More information about the p4-projects mailing list