]> dxcluster.net Git - spider.git/commitdiff
fixed a hex character recognition problem I appear to have introduced
authorminima <minima>
Sat, 5 Aug 2000 10:48:36 +0000 (10:48 +0000)
committerminima <minima>
Sat, 5 Aug 2000 10:48:36 +0000 (10:48 +0000)
in the C client.

Changes
src/client.c

diff --git a/Changes b/Changes
index 7802845aa12dda52317ae23615fdcb622c8df366..fc00fddea358cad4beb4e7dfa34d150293cc601d 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,5 @@
+05Aug00=======================================================================
+1. Fixed hax character problem put in somewhen in the C Client
 02Aug00=======================================================================
 1. put back hex check exception for PC29
 01Aug00=======================================================================
index c330536bf3a15e6c52ed21987692a55a2258a95a..d2ed0c473ed01731063a2a689e8825c75c37fe68 100644 (file)
@@ -448,12 +448,12 @@ int fcb_handler(sel_t *sp, int in, int out, int err)
 
                                case 1:
                                        mp->state = 2;
-                                       if (ch >= '2' && ch <= '9') 
+                                       if (ch >= '0' && ch <= '9') 
                                                c = (ch - '0') << 4;
                                        else if (ch >= 'A' && ch <= 'F')
                                                c = (ch - 'A' + 10) << 4;
                                        else {
-                                               dbg(DMSG, "Illegal hex char (%c) received in state %d", ch, mp->state);
+                                               dbg(DMSG, "Illegal hex char (%c) received in state 1", ch);
                                                mp->inp = mp->data;
                                                mp->state = 0;
                                        }
@@ -465,7 +465,7 @@ int fcb_handler(sel_t *sp, int in, int out, int err)
                                        else if (ch >= 'A' && ch <= 'F')
                                                *mp->inp++ = c | (ch - 'A' + 10);
                                        else {
-                                               dbg(DMSG, "Illegal hex char (%c) received in state %d", ch, mp->state);
+                                               dbg(DMSG, "Illegal hex char (%c) received in state 2", ch);
                                                mp->inp = mp->data;
                                        }
                                        mp->state = 0;