diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-02 01:52:28 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-02 01:52:28 +0000 |
commit | 450f92eb7165131ff3fdb2f80ec2fc65254f5ccb (patch) | |
tree | 4a0260d6717520379b98af80419feda2ca7cea29 /libc/stdlib/bsd_getpt.c | |
parent | 6fd3ac79613c9e1832513b0f614860be2735993f (diff) | |
download | uClibc-alpine-450f92eb7165131ff3fdb2f80ec2fc65254f5ccb.tar.bz2 uClibc-alpine-450f92eb7165131ff3fdb2f80ec2fc65254f5ccb.tar.xz |
Merge from trunk.
Diffstat (limited to 'libc/stdlib/bsd_getpt.c')
-rw-r--r-- | libc/stdlib/bsd_getpt.c | 6 |
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; |