X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Flog.c;h=0463a629113bae6d77ca01040ef482a7fd5e70c9;hb=2ca7419e15fc506b3ec2dcff3b288861a328793d;hp=6a231e4626d2313b97fff017c869a6e79758ce2f;hpb=6006e6ad14bd76d1c57b1bc1d9044a321fe4aa26;p=yaz-moved-to-github.git diff --git a/src/log.c b/src/log.c index 6a231e4..0463a62 100644 --- a/src/log.c +++ b/src/log.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -577,7 +577,7 @@ int yaz_log_mask_str_x(const char *str, int level) else { char clean[509]; - char *n = clean_name(str, p-str, clean, sizeof(clean)); + char *n = clean_name(str, (size_t) (p - str), clean, sizeof(clean)); int mask = define_module_bit(n); if (!mask) level = 0; /* 'none' clears them all */