summaryrefslogtreecommitdiff
path: root/libc/stdlib/getenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/getenv.c')
-rw-r--r--libc/stdlib/getenv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdlib/getenv.c b/libc/stdlib/getenv.c
index 2daf03955..9dfc0d132 100644
--- a/libc/stdlib/getenv.c
+++ b/libc/stdlib/getenv.c
@@ -29,9 +29,9 @@ char *getenv(const char *var)
if (!(ep=__environ))
return NULL;
- len = strlen(var);
+ len = __strlen(var);
while(*ep) {
- if (memcmp(var, *ep, len) == 0 && (*ep)[len] == '=') {
+ if (__memcmp(var, *ep, len) == 0 && (*ep)[len] == '=') {
return *ep + len + 1;
}
ep++;