Date: Sun, 24 Apr 2016 04:28:04 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298531 - head/usr.bin/patch Message-ID: <201604240428.u3O4S4c6053623@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604240428.u3O4S4c6053623>