From c9fb3990d5713cac63c4b0d42a7eb7a66833ac75 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 19 Mar 2003 09:45:55 +0000 Subject: [PATCH] Fix uninitialized var type_and_host --- client/client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/client.c b/client/client.c index 79e1ea1..3c45287 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2003, Index Data * See the file LICENSE for details. * - * $Id: client.c,v 1.185 2003-03-11 11:07:47 adam Exp $ + * $Id: client.c,v 1.186 2003-03-19 09:45:55 adam Exp $ */ #include @@ -458,6 +458,9 @@ int cmd_open(const char *arg) } cs_get_host_args(arg, &basep); + strncpy(type_and_host, arg, sizeof(type_and_host)-1); + type_and_host[sizeof(type_and_host)-1] = '\0'; + cmd_open_remember_last_open_command(arg,type_and_host); if (yazProxy) -- 1.7.10.4