X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fsrwutil.c;h=96426ca6a24589bec803e2b311c3285b44f618f1;hp=af507b18ab4ed757ca0ed37bef7f12fec1a0b2c6;hb=337f11f176f339be5957832bb418b6b39a6c1101;hpb=ffc156e81106f536a43f949379cee95b16e0c957 diff --git a/src/srwutil.c b/src/srwutil.c index af507b1..96426ca 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2007, Index Data ApS * See the file LICENSE for details. * - * $Id: srwutil.c,v 1.57 2007-05-23 11:54:47 adam Exp $ + * $Id: srwutil.c,v 1.58 2007-05-23 13:11:11 adam Exp $ */ /** * \file srwutil.c @@ -1344,11 +1344,11 @@ const char *yaz_srw_pack_to_str(int pack) int yaz_srw_str_to_pack(const char *str) { - if (!strcmp(str, "string")) + if (!yaz_matchstr(str, "string")) return Z_SRW_recordPacking_string; - if (!strcmp(str, "xml")) + if (!yaz_matchstr(str, "xml")) return Z_SRW_recordPacking_XML; - if (!strcmp(str, "url")) + if (!yaz_matchstr(str, "url")) return Z_SRW_recordPacking_URL; return -1; }