diff options
author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-24 04:28:04 +0000 |
---|---|---|
committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-04-24 04:28:04 +0000 |
commit | 3548708c4713b248a839f3ef8928dba5c9642a91 (patch) | |
tree | 76360ce5f7d056b2a5bfe891ca1b2f86d902a001 /usr.bin/patch | |
parent | 2c4eed4723c3a739b85102d1ff911f06fe826fbc (diff) | |
download | src-3548708c4713b248a839f3ef8928dba5c9642a91.tar.gz src-3548708c4713b248a839f3ef8928dba5c9642a91.zip |
Adjust a type from r267490.
Independent of the maximum length, the return type for strnlen(3)
is always size_t.
Notes
Notes:
svn path=/head/; revision=298531
Diffstat (limited to 'usr.bin/patch')
-rw-r--r-- | usr.bin/patch/patch.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/patch/patch.c b/usr.bin/patch/patch.c index b061041dd053..1bdbcfb5b84b 100644 --- a/usr.bin/patch/patch.c +++ b/usr.bin/patch/patch.c @@ -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); |