+Tue Mar 9 23:44:40 2004 Ben Pfaff <blp@gnu.org>
+
+ * format.c: (parse_format_specifier_name) Fix brown-bag bug
+ introduced in last check-in.
+
Tue Mar 9 23:10:41 2004 Ben Pfaff <blp@gnu.org>
* format.c: (global array translate_fmt[]) Removed.
/* Find format. */
for (idx = 0; idx < FMT_NUMBER_OF_FORMATS; idx++)
if (strlen (formats[idx].name) == ep - sp
- && memcmp (formats[idx].name, sp, ep - sp))
+ && !memcmp (formats[idx].name, sp, ep - sp))
break;
/* Check format. */
idx = -1;
}
- if (cp != NULL)
- *cp = ep;
+ if (cp != NULL)
+ {
+ if (idx != -1)
+ *cp = ep;
+ else
+ *cp = NULL;
+ }
return idx;
}