X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoomsh.c;h=be86ef6a24331cec7353ceb3d5dcdce189caea61;hb=0e967e932ab262eb724f19922594359a4bb3336e;hp=aaf68994b5e38d09afb43d4a5cfb7d5d02a43cfb;hpb=6607d0bd04b26591614a84a9aa9bad7e7b00e7e9;p=yaz-moved-to-github.git diff --git a/zoom/zoomsh.c b/zoom/zoomsh.c index aaf6899..be86ef6 100644 --- a/zoom/zoomsh.c +++ b/zoom/zoomsh.c @@ -1,14 +1,19 @@ /* - * $Id: zoomsh.c,v 1.23 2003-07-14 12:59:23 adam Exp $ + * Copyright (c) 2002-2004, Index Data. + * See the file LICENSE for details. * - * ZOOM-C Shell + * $Id: zoomsh.c,v 1.29 2004-04-29 08:54:56 adam Exp $ */ +/* ZOOM-C Shell */ + #include #include #include #include +#include + #if HAVE_READLINE_READLINE_H #include #endif @@ -220,15 +225,19 @@ static void cmd_ext (ZOOM_connection *c, ZOOM_resultset *r, const char **args) { ZOOM_package p[MAX_CON]; + char ext_type_str[10]; int i; + + if (next_token_copy (args, ext_type_str, sizeof(ext_type_str)) < 0) + return; for (i = 0; i