diff options
author | Ben Harris <bjh21@bjh21.me.uk> | 2009-01-11 17:26:27 +0300 |
---|---|---|
committer | Ben Harris <bjh21@bjh21.me.uk> | 2009-01-11 17:26:27 +0300 |
commit | 36f502fa9311a62923cf83b34a4016ad68aaa33f (patch) | |
tree | fe018161c3a4a5fcf9d48a88dd6892e0f24703e3 /logging.c | |
parent | 91496d37c72b040ae899058564e71814a501e53b (diff) |
Arguments to ctype functions are required to be either EOF or representable
as unsigned char. This means that passing in a bare char is incorrect on
systems where char is signed. Sprinkle some appropriate casts to prevent
this.
[originally from svn r8406]
Diffstat (limited to 'logging.c')
-rw-r--r-- | logging.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -384,7 +384,7 @@ static void xlatlognam(Filename *dest, Filename src, char c; s++; size = 0; - if (*s) switch (c = *s++, tolower(c)) { + if (*s) switch (c = *s++, tolower((unsigned char)c)) { case 'y': size = strftime(buf, sizeof(buf), "%Y", tm); break; |