summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/realpath.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/stdlib/realpath.c b/src/lib/libc/stdlib/realpath.c
index 7b70b9ddfb..27f1a29061 100644
--- a/src/lib/libc/stdlib/realpath.c
+++ b/src/lib/libc/stdlib/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 *
@@ -190,7 +190,7 @@ realpath(const char *path, char *resolved)
190 symlink[slen + 1] = 0; 190 symlink[slen + 1] = 0;
191 } 191 }
192 left_len = strlcat(symlink, left, sizeof(symlink)); 192 left_len = strlcat(symlink, left, sizeof(symlink));
193 if (left_len >= sizeof(left)) { 193 if (left_len >= sizeof(symlink)) {
194 errno = ENAMETOOLONG; 194 errno = ENAMETOOLONG;
195 goto err; 195 goto err;
196 } 196 }