Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mRemoteNG/PuTTYNG.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2009-01-11 17:26:27 +0300
committerBen Harris <bjh21@bjh21.me.uk>2009-01-11 17:26:27 +0300
commit36f502fa9311a62923cf83b34a4016ad68aaa33f (patch)
treefe018161c3a4a5fcf9d48a88dd6892e0f24703e3 /logging.c
parent91496d37c72b040ae899058564e71814a501e53b (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/logging.c b/logging.c
index db02892a..17924c5a 100644
--- a/logging.c
+++ b/logging.c
@@ -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;