X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Fclient.c;h=3c452873537028194d8cc4e64e5e32664477652e;hp=79e1ea1ec7d627c08f90ac6434782cd8d06ec4f6;hb=c9fb3990d5713cac63c4b0d42a7eb7a66833ac75;hpb=6a9f385c94281b3dbddd612f388837c01661c5c5 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)