summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbsd-compat/realpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsd-compat/realpath.c b/openbsd-compat/realpath.c
index a6ac09ba5..a0199ab34 100644
--- a/openbsd-compat/realpath.c
+++ b/openbsd-compat/realpath.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: realpath.c,v 1.19 2015/01/16 16:48:51 deraadt Exp $ */ 1/* $OpenBSD: realpath.c,v 1.20 2015/10/13 20:55:37 millert Exp $ */
2/* 2/*
3 * Copyright (c) 2003 Constantin S. Svintsoff <kostik@iclub.nsu.ru> 3 * Copyright (c) 2003 Constantin S. Svintsoff <kostik@iclub.nsu.ru>
4 * 4 *
@@ -200,7 +200,7 @@ realpath(const char *path, char *resolved)
200 symlink[slen + 1] = 0; 200 symlink[slen + 1] = 0;
201 } 201 }
202 left_len = strlcat(symlink, left, sizeof(symlink)); 202 left_len = strlcat(symlink, left, sizeof(symlink));
203 if (left_len >= sizeof(left)) { 203 if (left_len >= sizeof(symlink)) {
204 errno = ENAMETOOLONG; 204 errno = ENAMETOOLONG;
205 goto err; 205 goto err;
206 } 206 }