diff options
Diffstat (limited to 'editors/openoffice.org-2-RC/files/patch-sal+osl+unx+pipe.c')
-rw-r--r-- | editors/openoffice.org-2-RC/files/patch-sal+osl+unx+pipe.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+pipe.c b/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+pipe.c index 6802487470a2..217bd0be4d58 100644 --- a/editors/openoffice.org-2-RC/files/patch-sal+osl+unx+pipe.c +++ b/editors/openoffice.org-2-RC/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 ) |