summaryrefslogtreecommitdiff
path: root/openbsd-compat/realpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/realpath.c')
-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 6646330ca..f2083e0f6 100644
--- a/openbsd-compat/realpath.c
+++ b/openbsd-compat/realpath.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: realpath.c,v 1.14 2011/07/24 21:03:00 miod Exp $ */ 1/* $OpenBSD: realpath.c,v 1.15 2012/09/13 15:39:05 deraadt 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 *
@@ -196,7 +196,7 @@ realpath(const char *path, char *resolved)
196 symlink[slen] = '/'; 196 symlink[slen] = '/';
197 symlink[slen + 1] = 0; 197 symlink[slen + 1] = 0;
198 } 198 }
199 left_len = strlcat(symlink, left, sizeof(left)); 199 left_len = strlcat(symlink, left, sizeof(symlink));
200 if (left_len >= sizeof(left)) { 200 if (left_len >= sizeof(left)) {
201 errno = ENAMETOOLONG; 201 errno = ENAMETOOLONG;
202 goto err; 202 goto err;