[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bbcombotest patch



I found that bbcombotest didn't work for hostnames starting with a
number.

My fix:  (this is on the 4.4.0 branch)

@@ -295,13 +291,10 @@

        done = 0; inp=symbolicexpr; outp=expr; symp = NULL;
        while (!done) {
-               if (isalpha((int)*inp)) {
+        if (isalpha((int)*inp) || isdigit((int) *inp) || *inp == '.') {
                        if (!insymbol) { insymbol = 1; symp = symbol; }
                        *symp = *inp; symp++;
                }
-               else if (insymbol && (isdigit((int) *inp) || (*inp ==
'.'))) {
-                       *symp = *inp; symp++;
-               }
                else if (insymbol && ((*inp == '\\') && (*(inp+1) > '
'))) {
                        *symp = *(inp+1); symp++; inp++;
                }