summaryrefslogtreecommitdiff
path: root/libc/unistd/getlogin.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-01 20:43:44 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-01 20:43:44 +0000
commit8a0b43005ad9ea011b80d66e32b46fb430ddaffb (patch)
tree418818740042c5dbba244bc1efc760c8d29e47a9 /libc/unistd/getlogin.c
parent42b161bb716f35948fabd36472fb59cd0a20fa92 (diff)
Hide mostly used functions
Diffstat (limited to 'libc/unistd/getlogin.c')
-rw-r--r--libc/unistd/getlogin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/unistd/getlogin.c b/libc/unistd/getlogin.c
index d6a11b01e..e1685692c 100644
--- a/libc/unistd/getlogin.c
+++ b/libc/unistd/getlogin.c
@@ -41,7 +41,7 @@ int getlogin_r(char *name, size_t len)
if (! foo)
return -1;
- strncpy(name, foo, len);
+ __strncpy(name, foo, len);
name[len-1] = '\0';
return 0;
}
@@ -50,7 +50,7 @@ char *cuserid(char *s)
{
char *name = getlogin();
if (s) {
- return(strcpy(s, name ? name : ""));
+ return(__strcpy(s, name ? name : ""));
}
return name;
}