fixed a bug in enum_from_name() function

This commit is contained in:
Andreas Steffen committed 2010-12-12 12:54:36 +01:00
1 parent 458e7779a8
commit dc1b2eb2e8
1 file changed
+1 -1
+1 -1
View File
@@ -43,7 +43,7 @@ int enum_from_name(enum_name_t *e, char *name)
{
do
{
int i, count = e->last - e->first;
int i, count = e->last - e->first + 1;
for (i = 0; i < count; i++)
{