From: Mike Taylor Date: Tue, 9 May 2006 11:09:09 +0000 (+0000) Subject: Render OID as string when used in error-messages. X-Git-Tag: YAZ.2.1.20~52 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=7d849f69c1386fbeb27eefcc60b8d0ffbdd5218c Render OID as string when used in error-messages. -- was type-mismatch of printf("%s", oid) --- diff --git a/src/retrieval.c b/src/retrieval.c index c433d61..450be15 100644 --- a/src/retrieval.c +++ b/src/retrieval.c @@ -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.8 2006-05-09 11:09:09 mike 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[100]; + wrbuf_printf(p->wr_error, "%s", oid_to_dotstring(syntax, buf)); return 2; } if (schema)