Index: gnome-pty-helper/gnome-pty-helper.c
===================================================================
RCS file: /cvs/gnome/vte/gnome-pty-helper/gnome-pty-helper.c,v
retrieving revision 1.7
diff -u -r1.7 gnome-pty-helper.c
--- gnome-pty-helper/gnome-pty-helper.c	1 May 2004 07:12:51 -0000	1.7
+++ gnome-pty-helper/gnome-pty-helper.c	5 Dec 2004 21:51:41 -0000
@@ -93,14 +93,14 @@
 #endif
 #endif /* CMSG_DATA */
 
-#define CONTROLLEN (sizeof (struct cmsghdr)  + sizeof (int))
-
 static struct cmsghdr *cmptr;
+static int CONTROLLEN;
 
 static int
 init_msg_pass ()
 {
 	cmptr = malloc (CONTROLLEN);
+	CONTROLLEN = (CMSG_DATA (cmptr) - (unsigned char *)cmptr) + sizeof (int);
 
 	if (cmptr)
 		return 0;
