Smallish mod to CQL generation
authorSebastian Hammer <quinn@indexdata.com>
Wed, 23 Jul 2008 17:29:37 +0000 (17:29 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Wed, 23 Jul 2008 17:29:37 +0000 (17:29 +0000)
src/client.c

index 1f8de6d..208535d 100644 (file)
@@ -596,7 +596,7 @@ static char *make_cqlquery(struct client *cl)
         yaz_log(YLOG_WARN, "failed to generate CQL query, code=%d", status);
         return 0;
     }
-    r = xstrdup(wrbuf_buf(wrb));
+    r = xstrdup(wrbuf_cstr(wrb));
 
     wrbuf_destroy(wrb);
     odr_reset(global_parameters.odr_out); // releases the zquery