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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to