if (next < 0) /* a month name was not encountered */
{
for (i = 0; i < 12; i++)
- if (!strcmp (tok, months[i]))
+ if (!strcasecmp (tok, months[i]))
break;
/* If we got a month, it means the token before it is the
size, and the filename is three tokens away. */
/* Protections (permissions). */
perms = 0;
j = 0;
- for (i = 0; i < strlen(tok); i++)
+ /*FIXME: Should not be using the variable like this. */
+ for (i = 0; i < (int) strlen(tok); i++)
{
switch (tok[ i])
{