X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=src%2Fclient.c;h=c330536bf3a15e6c52ed21987692a55a2258a95a;hb=2c3a20bdcef84e620b0c3c2d306a71ebe17956b0;hp=3404be9d9232b3600571118de6fec1e69180f67b;hpb=43d1c9f4ff26d0ee9afbb54e7fb90701a9d4e694;p=spider.git diff --git a/src/client.c b/src/client.c index 3404be9d..c330536b 100644 --- a/src/client.c +++ b/src/client.c @@ -44,7 +44,7 @@ #define MAXPATHLEN 256 #endif -#define DEFPACLEN 128 +#define DEFPACLEN 236 #define MAXPACLEN 236 #define MAXCALLSIGN 9 @@ -448,12 +448,10 @@ int fcb_handler(sel_t *sp, int in, int out, int err) case 1: mp->state = 2; - if (ch >= '0' && ch <= '9') + if (ch >= '2' && ch <= '9') c = (ch - '0') << 4; else if (ch >= 'A' && ch <= 'F') c = (ch - 'A' + 10) << 4; - else if (ch >= 'a' && ch <= 'a') - c = (ch - 'a' + 10) << 4; else { dbg(DMSG, "Illegal hex char (%c) received in state %d", ch, mp->state); mp->inp = mp->data; @@ -466,8 +464,6 @@ int fcb_handler(sel_t *sp, int in, int out, int err) *mp->inp++ = c | (ch - '0'); else if (ch >= 'A' && ch <= 'F') *mp->inp++ = c | (ch - 'A' + 10); - else if (ch >= 'a' && ch <= 'a') - *mp->inp++ = c | (ch - 'a' + 10); else { dbg(DMSG, "Illegal hex char (%c) received in state %d", ch, mp->state); mp->inp = mp->data;