aboutsummaryrefslogtreecommitdiffstats
path: root/ports/unix/guts/realpath.c
diff options
context:
space:
mode:
Diffstat (limited to 'ports/unix/guts/realpath.c')
-rw-r--r--ports/unix/guts/realpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/unix/guts/realpath.c b/ports/unix/guts/realpath.c
index 48b2b34..a59808d 100644
--- a/ports/unix/guts/realpath.c
+++ b/ports/unix/guts/realpath.c
@@ -20,7 +20,7 @@
memcpy(resolved_name, rname, len + 1);
rc = resolved_name;
} else {
- rc = rname;
+ rc = strdup(rname);
}
/* return rc;