aboutsummaryrefslogtreecommitdiffstats
path: root/libc/bionic/getcwd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libc/bionic/getcwd.cpp')
-rw-r--r--libc/bionic/getcwd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/getcwd.cpp b/libc/bionic/getcwd.cpp
index e06f52eaa..2ff22dbca 100644
--- a/libc/bionic/getcwd.cpp
+++ b/libc/bionic/getcwd.cpp
@@ -47,7 +47,7 @@ char* getcwd(char* buf, size_t size) {
// TODO: if we need to support paths longer than that, we'll have to walk the tree ourselves.
size = getpagesize();
}
- buf = allocated_buf = reinterpret_cast<char*>(malloc(allocated_size));
+ buf = allocated_buf = static_cast<char*>(malloc(allocated_size));
if (buf == NULL) {
// malloc set errno.
return NULL;