ptsname: Avoid ERANGE failure on some systems.
authorBruno Haible <bruno@clisp.org>
Sat, 25 Dec 2010 16:58:02 +0000 (17:58 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 25 Dec 2010 16:58:02 +0000 (17:58 +0100)
* lib/ptsname.c (buffer): Increase size.

ChangeLog
lib/ptsname.c

index 84c1e7c..adc21ad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-12-25  Bruno Haible  <bruno@clisp.org>
 
+       ptsname: Avoid ERANGE failure on some systems.
+       * lib/ptsname.c (buffer): Increase size.
+
+2010-12-25  Bruno Haible  <bruno@clisp.org>
+
        rename, renameat: Avoid test failures at NFS mounted locations.
        * tests/test-rename.h (assert_nonexistent): Remove the old directory,
        so that subsequent mkdir calls succeed.
index 3c7a9e0..c2bea01 100644 (file)
@@ -43,7 +43,7 @@ static int __ptsname_r (int fd, char *buf, size_t buflen);
 
 
 /* Static buffer for `ptsname'.  */
-static char buffer[sizeof (_PATH_TTY) + 2];
+static char buffer[64];
 
 
 /* Return the pathname of the pseudo terminal slave associated with