diff src/s/usg5-4.h @ 5337:906ccc7dcd70

Change to qxesprintf(), qxestrcpy(), s/hpux11.h, s/usg5-4.h 2011-01-14 Aidan Kehoe <kehoea@parhasard.net> * s/hpux11.h (PTY_TTY_NAME_SPRINTF, PTY_NAME_SPRINTF): * s/usg5-4.h (PTY_TTY_NAME_SPRINTF, PTY_NAME_SPRINTF): Replace sprintf() with qxesprintf(), strcpy with qxestrpy(), hopefully fixing some platform-specific C++ builds.
author Aidan Kehoe <kehoea@parhasard.net>
date Fri, 14 Jan 2011 23:23:30 +0000
parents aa5ed11f473b
children 9dd4559b9e9a
line wrap: on
line diff
--- a/src/s/usg5-4.h	Fri Jan 14 23:16:25 2011 +0000
+++ b/src/s/usg5-4.h	Fri Jan 14 23:23:30 2011 +0000
@@ -124,7 +124,7 @@
 
 /* This sets the name of the master side of the PTY. */
 
-#define PTY_NAME_SPRINTF strcpy (pty_name, "/dev/ptmx");
+#define PTY_NAME_SPRINTF qxestrcpy (pty_name, "/dev/ptmx");
 
 /* This sets the name of the slave side of the PTY.  On SysVr4,
    grantpt(3) forks a subprocess, so keep sigchld_handler() from
@@ -150,7 +150,7 @@
       { close (fd); return -1; }			\
     if (!(ptyname = ptsname (fd)))			\
       { close (fd); return -1; }			\
-    strncpy (pty_name, ptyname, sizeof (pty_name));	\
+    qxestrncpy (pty_name, ptyname, sizeof (pty_name));	\
     pty_name[sizeof (pty_name) - 1] = 0;		\
   }