Files
pkgsrc-ng/net/chrony/patches/patch-ag
2014-11-05 12:41:07 +01:00

16 lines
442 B
Plaintext

$NetBSD: patch-ag,v 1.4 2013/08/16 08:30:20 hannken Exp $
The ctype functions work on integers.
--- getdate.c.orig 2013-08-08 13:58:07.000000000 +0000
+++ getdate.c
@@ -2547,7 +2547,7 @@ LookupWord (buff)
/* Make it lowercase. */
for (p = buff; *p; p++)
if (ISUPPER ((unsigned char) *p))
- *p = tolower (*p);
+ *p = tolower ((unsigned char)(*p));
if (strcmp (buff, "am") == 0 || strcmp (buff, "a.m.") == 0)
{