aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/patch/patch.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/patch/patch.c')
-rw-r--r--usr.bin/patch/patch.c2
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);