Fix CCL->RPN code for attribute strings.
[yaz-moved-to-github.git] / zutil / yaz-ccl.c
index 5b47e79..8ed2177 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1996-2003, Index Data.
  * See the file LICENSE for details.
  *
- * $Id: yaz-ccl.c,v 1.20 2003-06-23 10:22:21 adam Exp $
+ * $Id: yaz-ccl.c,v 1.21 2003-06-23 12:38:39 adam Exp $
  */
 
 #include <stdio.h>
@@ -124,7 +124,7 @@ void ccl_pquery (WRBUF w, struct ccl_rpn_node *p)
                wrbuf_puts (w, tmpattr);
                break;
            case CCL_RPN_ATTR_STRING:
-               sprintf(tmpattr, "%d ", att->type);
+               sprintf(tmpattr, "%d=", att->type);
                wrbuf_puts (w, tmpattr);
                wrbuf_puts(w, att->value.str);
                break;