Use OID_STR_MAX for size of oid dot string
[yaz-moved-to-github.git] / src / retrieval.c
index c433d61..525987a 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (C) 2005-2006, Index Data ApS
  * See the file LICENSE for details.
  *
- * $Id: retrieval.c,v 1.7 2006-05-08 19:48:26 adam Exp $
+ * $Id: retrieval.c,v 1.9 2006-05-09 11:35:28 adam Exp $
  */
 /**
  * \file retrieval.c
@@ -283,7 +283,8 @@ int yaz_retrieval_request(yaz_retrieval_t p,
     }
     if (!syntax_matches && syntax)
     {
-        wrbuf_printf(p->wr_error, "%s", syntax);
+        char buf[OID_STR_MAX];
+        wrbuf_printf(p->wr_error, "%s", oid_to_dotstring(syntax, buf));
         return 2;
     }
     if (schema)