patch-options_c 542 B

1234567891011
  1. --- moc-2.5.0-alpha4.orig/options.c 2009-09-16 12:04:53.000000000 +0200
  2. +++ moc-2.5.0-alpha4/options.c 2010-03-06 11:38:50.596035001 +0100
  3. @@ -327,7 +327,7 @@ static void option_add_symb (const char
  4. char *val = va_arg (va, char *);
  5. if (strlen (val) == 0 ||
  6. strlen (val) != strspn (val, valid) ||
  7. - index (first, val[0]) != NULL)
  8. + strchr (first, val[0]) != NULL)
  9. fatal ("Invalid symbol in '%s' constraint list.", name);
  10. ((char **) options[pos].constraints)[ix] = xstrdup (val);
  11. if (!strcasecmp (val, value))