aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/xreadlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c
index 6315033bb..ead30e499 100644
--- a/libbb/xreadlink.c
+++ b/libbb/xreadlink.c
@@ -143,7 +143,7 @@ char* FAST_FUNC xmalloc_realpath_coreutils(const char *path)
buf = xmalloc_realpath(path);
if (buf) {
unsigned len = strlen(buf);
- buf = xrealloc(buf, len + strlen(last_slash) + 2);
+ buf = xrealloc(buf, len + strlen(last_slash) + 2);
buf[len++] = '/';
strcpy(buf + len, last_slash);
}