diff options
Diffstat (limited to 'lib/libFS/src/FSOpenServ.c')
-rw-r--r-- | lib/libFS/src/FSOpenServ.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/libFS/src/FSOpenServ.c b/lib/libFS/src/FSOpenServ.c index 42463f501..32f7d259b 100644 --- a/lib/libFS/src/FSOpenServ.c +++ b/lib/libFS/src/FSOpenServ.c @@ -2,24 +2,24 @@ * Copyright 1990 Network Computing Devices; * Portions Copyright 1987 by Digital Equipment Corporation * - * Permission to use, copy, modify, distribute, and sell this software - * and its documentation for any purpose is hereby granted without fee, - * provided that the above copyright notice appear in all copies and - * that both that copyright notice and this permission notice appear - * in supporting documentation, and that the names of Network Computing - * Devices or Digital not be used in advertising or publicity pertaining - * to distribution of the software without specific, written prior - * permission. Network Computing Devices or Digital make no representations - * about the suitability of this software for any purpose. It is provided + * Permission to use, copy, modify, distribute, and sell this software + * and its documentation for any purpose is hereby granted without fee, + * provided that the above copyright notice appear in all copies and + * that both that copyright notice and this permission notice appear + * in supporting documentation, and that the names of Network Computing + * Devices or Digital not be used in advertising or publicity pertaining + * to distribution of the software without specific, written prior + * permission. Network Computing Devices or Digital make no representations + * about the suitability of this software for any purpose. It is provided * "as is" without express or implied warranty. * * NETWORK COMPUTING DEVICES AND DIGITAL DISCLAIM ALL WARRANTIES WITH - * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF + * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL NETWORK COMPUTING DEVICES - * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES - * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, - * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, - * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS + * OR DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES + * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, + * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, + * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS * SOFTWARE. */ @@ -101,7 +101,7 @@ void OutOfMemory( */ FSServer * -FSOpenServer(char *server) +FSOpenServer(const char *server) { FSServer *svr; int i; @@ -135,7 +135,7 @@ FSOpenServer(char *server) } (void) strcpy(svr->server_name, server); - if ((svr->trans_conn = _FSConnectServer(server)) == NULL) { + if ((svr->trans_conn = _FSConnectServer(svr->server_name)) == NULL) { goto fail; } @@ -197,7 +197,7 @@ FSOpenServer(char *server) svr->num_alternates = prefix.num_alternates; setuplength = prefix.auth_len << 2; - if (setuplength > (SIZE_MAX>>2) + if (setuplength > (SIZE_MAX>>2) || (auth_data = (char *) (setup = FSmalloc((unsigned) setuplength))) == NULL) { goto fail; |