21 lines
701 B
Diff
21 lines
701 B
Diff
diff -up mcstrans-0.2.6/src/mcstrans.c.spc mcstrans-0.2.6/src/mcstrans.c
|
|
--- mcstrans-0.2.6/src/mcstrans.c.spc 2007-09-13 10:05:50.000000000 -0500
|
|
+++ mcstrans-0.2.6/src/mcstrans.c 2007-10-26 11:34:08.000000000 -0500
|
|
@@ -260,8 +260,6 @@ static int get_max_categories() {
|
|
return 1023;
|
|
}
|
|
|
|
-static int max_categories=get_max_categories();
|
|
-
|
|
static char *substitute_range(const char *cat) {
|
|
char *categories = strdup(cat);
|
|
char *ptr;
|
|
@@ -270,6 +268,7 @@ static char *substitute_range(const char
|
|
char *sub = strdup("");
|
|
int error = 0;
|
|
char *tmp = NULL;
|
|
+ int max_categories = get_max_categories();
|
|
while (tok) {
|
|
if ((r = strchr(tok,'.')) != 0) {
|
|
unsigned int begin = atoi(&tok[1]);
|