diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-10 23:04:41 +0000 |
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-12-10 23:04:41 +0000 |
| commit | 9184de4614953897215e989b8720ad7fe6cfde86 (patch) | |
| tree | 3fbdd8c59ed45fee7162fc51241cb59ee51afcf2 /libc/stdlib | |
| parent | f335b8c0ffb5fd7ae44d154900d78988b6abf769 (diff) | |
| download | uClibc-alpine-9184de4614953897215e989b8720ad7fe6cfde86.tar.bz2 uClibc-alpine-9184de4614953897215e989b8720ad7fe6cfde86.tar.xz | |
Finish merge from trunk, again, no really.
Diffstat (limited to 'libc/stdlib')
| -rw-r--r-- | libc/stdlib/ptsname.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/stdlib/ptsname.c b/libc/stdlib/ptsname.c index 769944ba2..c56f18a91 100644 --- a/libc/stdlib/ptsname.c +++ b/libc/stdlib/ptsname.c @@ -152,7 +152,7 @@ int attribute_hidden __ptsname_r (int fd, char *buf, size_t buflen) if (major (st.st_rdev) == 4) ptyno -= 128; - if (ptyno / 16 >= __strlen (_ptyname1)) + if (ptyno / 16 >= __strlen (__libc_ptyname1)) { errno = ENOTTY; return ENOTTY; @@ -160,8 +160,8 @@ int attribute_hidden __ptsname_r (int fd, char *buf, size_t buflen) __strcpy (buf, _PATH_TTY); p = buf + __strlen (buf); - p[0] = _ptyname1[ptyno / 16]; - p[1] = _ptyname2[ptyno % 16]; + p[0] = __libc_ptyname1[ptyno / 16]; + p[1] = __libc_ptyname2[ptyno % 16]; p[2] = '\0'; } |
