changeset 14029:01400c528402

ptsname: Avoid ERANGE failure on some systems. * lib/ptsname.c (buffer): Increase size.
author Bruno Haible <bruno@clisp.org>
date Sat, 25 Dec 2010 17:58:02 +0100
parents 2d32f7c9e2d3
children 1adb3647af8f
files ChangeLog lib/ptsname.c
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
--- a/lib/ptsname.c
+++ b/lib/ptsname.c
@@ -43,7 +43,7 @@
 
 
 /* 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