diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2012-01-01 18:17:37 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2012-01-01 18:17:37 +0000 |
| commit | d4069b689e1cc4b71b4081fb038aeda1f67a9aa3 (patch) | |
| tree | 8115afd27ea7e5505e809b21c8e5eff711d3c7fb | |
| parent | 530374fe68be5da0a8c3e63a00052ad664e23b5b (diff) | |
Notes
| -rw-r--r-- | lib/libc/stdlib/realpath.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdlib/realpath.c b/lib/libc/stdlib/realpath.c index 66bb8da98608d..2c9562ea6e03c 100644 --- a/lib/libc/stdlib/realpath.c +++ b/lib/libc/stdlib/realpath.c @@ -212,7 +212,8 @@ realpath(const char * __restrict path, char * __restrict resolved) symlink[slen] = '/'; symlink[slen + 1] = 0; } - left_len = strlcat(symlink, left, sizeof(left)); + left_len = strlcat(symlink, left, + sizeof(symlink)); if (left_len >= sizeof(left)) { if (m) free(resolved); |
