[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bbcombotest patch
- To: hobbit (at) hswn.dk
- Subject: bbcombotest patch
- From: Cade Robinson <cade.robinson (at) gmail.com>
- Date: Thu, 04 Mar 2010 11:39:35 -0600
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer; bh=pjQ6cfaErLNvj7T+4O05/JCNINM6RyLd7eXGUl2M35Q=; b=OwlLuw00m/sj5PCWnB0N5Jr0ETsmFAzvBJuyXGO2pUE4x+1lVJzpdcQ059kHroSuEE wFCVDGhrGhKjhQ6nP44Vpfyg70ePwkYpCm6iG9RyPajVptZUt1vVhDJ4eCH+n/07h8Hq LueEAtK1dobx9Za4Jew2uFZYvCtcKIVemQ4Is=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer; b=bDeL2eHlfOxzCCV8xciuou7tcqTW/RXIRSQym6OC5iwblUsHUI7LpEEut9KkmIfOn7 8QlYUCP7GT1GPQ5Bpk5TY01v/Ln3yThTcIYsaHjAs3BTtwPy1Cr5FiiYN6brFhKh2J5T Y1zflmLlBVf/2YANfQ9qZh/PK9rWE3sDH69NI=
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++;
}