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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/bsd_getpt.c b/libc/stdlib/bsd_getpt.c
index 0f981ab95..0249abbde 100644
--- a/libc/stdlib/bsd_getpt.c
+++ b/libc/stdlib/bsd_getpt.c
@@ -48,7 +48,7 @@ __getpt (void)
const char *p, *q;
char *s;
- memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY) - 1);
+ memcpy (buf, _PATH_PTY, sizeof (_PATH_PTY));
s = buf + strlen (buf);
/* s[0] and s[1] will be filled in the loop. */