X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsrwutil.c;h=06355d13b3129cd26c632d556ee79d93483406a7;hb=97554b23cfc19394bb77f7f3c4bf0c8abf89297b;hp=a7bc8391a8243c660e23ccc51011a04ab19f4830;hpb=4b7f94b22a4a670274c028db7f0e438f2d7d74a0;p=yaz-moved-to-github.git diff --git a/src/srwutil.c b/src/srwutil.c index a7bc839..06355d1 100644 --- a/src/srwutil.c +++ b/src/srwutil.c @@ -2,7 +2,7 @@ * Copyright (c) 2002-2004, Index Data. * See the file LICENSE for details. * - * $Id: srwutil.c,v 1.11 2004-01-27 21:22:44 adam Exp $ + * $Id: srwutil.c,v 1.12 2004-02-14 15:58:42 adam Exp $ */ #include @@ -134,8 +134,8 @@ void yaz_uri_val_int(const char *path, const char *name, ODR o, int **intp) void yaz_mk_std_diagnostic(ODR o, Z_SRW_diagnostic *d, int code, const char *details) { - d->code = (char *) odr_malloc(o, 50); - sprintf(d->code, "info:srw/diagnostic/1/%d", code); + d->uri = (char *) odr_malloc(o, 50); + sprintf(d->uri, "info:srw/diagnostic/1/%d", code); d->message = 0; if (details) d->details = odr_strdup(o, details);