Include sys/socket.h, arpa/inet.h
[yaz-moved-to-github.git] / src / zoom-opt.c
index c199e89..3b72785 100644 (file)
@@ -1,8 +1,6 @@
-/*
- * Copyright (C) 1995-2007, Index Data ApS
+/* This file is part of the YAZ toolkit.
+ * Copyright (C) 1995-2008 Index Data
  * See the file LICENSE for details.
- *
- * $Id: zoom-opt.c,v 1.8 2007-05-05 11:53:26 adam Exp $
  */
 /**
  * \file zoom-opt.c
@@ -171,7 +169,11 @@ ZOOM_API(const char *)
     if (!opt)
         return 0;
     if (opt->callback_func)
+    {
         v = (*opt->callback_func)(opt->callback_handle, name);
+        if (v)
+            *lenp = strlen(v);
+    }
     if (!v)
     {
         struct ZOOM_options_entry *e;