svn commit: r298531 - head/usr.bin/patch

Pedro F. Giffuni pfg at FreeBSD.org
Sun Apr 24 04:28:05 UTC 2016


Author: pfg
Date: Sun Apr 24 04:28:04 2016
New Revision: 298531
URL: https://svnweb.freebsd.org/changeset/base/298531

Log:
  Adjust a type from r267490.
  
  Independent of the maximum length, the return type for strnlen(3)
  is always size_t.

Modified:
  head/usr.bin/patch/patch.c

Modified: head/usr.bin/patch/patch.c
==============================================================================
--- head/usr.bin/patch/patch.c	Sun Apr 24 04:08:36 2016	(r298530)
+++ head/usr.bin/patch/patch.c	Sun Apr 24 04:28:04 2016	(r298531)
@@ -746,7 +746,7 @@ abort_context_hunk(void)
 static void
 rej_line(int ch, LINENUM i)
 {
-	unsigned short len;
+	size_t len;
 	const char *line = pfetch(i);
 
 	len = strnlen(line, USHRT_MAX);


More information about the svn-src-all mailing list