projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82a2980
)
Add cast
author
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 14 Jan 2010 09:58:34 +0000
(10:58 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Thu, 14 Jan 2010 11:25:10 +0000
(12:25 +0100)
src/log.c
patch
|
blob
|
history
diff --git
a/src/log.c
b/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 */