On Aug 30, 2007, at 11:45 AM, Mladen Turk wrote:

Rainer Jung wrote:
+ /* Always do memcmp including the final \0-termination character.
+     */
     switch (header[0]) {
         case 'A':
-            if (memcmp(p, "CCEPT", 5) == 0) {
+            if (memcmp(p, "CCEPT", 6) == 0) {

Right, but like said this should be a
>            if (memcmp(p, "CCEPT\0", 6) == 0) {

memcmp compares bytes.


"CCEPT" contains 6 bytes. It's len is 5, but it contains
6 bytes.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to