summaryrefslogtreecommitdiff
path: root/libc/stdlib/bsd_getpt.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdlib/bsd_getpt.c')
-rw-r--r--libc/stdlib/bsd_getpt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/stdlib/bsd_getpt.c b/libc/stdlib/bsd_getpt.c
index 0249abbde..f219afd29 100644
--- a/libc/stdlib/bsd_getpt.c
+++ b/libc/stdlib/bsd_getpt.c
@@ -48,8 +48,8 @@ __getpt (void)
const char *p, *q;
char *s;
- memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY));
- s = buf + strlen (buf);
+ __memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY));
+ s = buf + __strlen (buf);
/* s[0] and s[1] will be filled in the loop. */
s[2] = '\0';
@@ -64,7 +64,7 @@ __getpt (void)
s[1] = *q;
- fd = open (buf, O_RDWR);
+ fd = __open (buf, O_RDWR);
if (fd != -1)
return fd;