Add cast
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 14 Jan 2010 09:58:34 +0000 (10:58 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 14 Jan 2010 11:25:10 +0000 (12:25 +0100)
src/log.c

index 6a231e4..f5dac06 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -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 */