summaryrefslogtreecommitdiff
path: root/editors/openoffice-1.0/files/patch-sal+osl+unx+pipe.c
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2002-04-02 23:48:28 +0000
committerMartin Blapp <mbr@FreeBSD.org>2002-04-02 23:48:28 +0000
commita31c45a0b4b17f5d096eed1898c2707ee051cbfc (patch)
tree9c56cf569b60a5bc10df486b70071e922ead482f /editors/openoffice-1.0/files/patch-sal+osl+unx+pipe.c
parentFix cups support. (diff)
Upgrade to build 641d. More work is necessary to make the build compile.
There are still at least two different gcc bugs in our compiler, one issue has already been found by Alexander Kabaev <ak03@gte.com>. He's working on fixing the other.
Notes
Notes: svn path=/head/; revision=57248
Diffstat (limited to 'editors/openoffice-1.0/files/patch-sal+osl+unx+pipe.c')
-rw-r--r--editors/openoffice-1.0/files/patch-sal+osl+unx+pipe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/editors/openoffice-1.0/files/patch-sal+osl+unx+pipe.c b/editors/openoffice-1.0/files/patch-sal+osl+unx+pipe.c
index 6802487470a2..217bd0be4d58 100644
--- a/editors/openoffice-1.0/files/patch-sal+osl+unx+pipe.c
+++ b/editors/openoffice-1.0/files/patch-sal+osl+unx+pipe.c
@@ -1,13 +1,13 @@
---- ../sal/osl/unx/pipe.c.orig Tue May 29 07:38:32 2001
-+++ ../sal/osl/unx/pipe.c
+--- ../sal/osl/unx/pipe.c.orig Mon Feb 18 13:48:55 2002
++++ ../sal/osl/unx/pipe.c Wed Apr 3 00:59:15 2002
@@ -264,7 +264,11 @@
addr.sun_family = AF_UNIX;
- strcpy(addr.sun_path, name);
+ strncpy(addr.sun_path, name, sizeof(addr.sun_path));
+#if defined(FREEBSD)
-+ len = SUN_LEN(&addr);
++ len = SUN_LEN(&addr);
+#else
- len = sizeof(addr.sun_family) + strlen(addr.sun_path);
+ len = sizeof(addr);
+#endif
if ( Options & osl_Pipe_CREATE )