Ignore:
Timestamp:
21/08/06 15:29:14 (13 years ago)
Author:
spascoe
Message:

ALL TEST SUCCEED ON EASTERLY.

A bug in my message passing code, due to me missunderstanding
bbftp_private_send/recv.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/trunk/src/bbftp-client-3.2.0/bbftpc/ndg_client.c

    r1395 r1430  
    3333 
    3434  sprintf(ctrl, "NDG-msg: %i", length); 
    35   if (bbftp_private_send(ctrl, NDG_MESSAGE_LEN, logmessage) == -1) { 
     35  if (bbftp_private_send(ctrl, NDG_MESSAGE_LEN - 1, logmessage) == -1) { 
    3636    return -1; 
    3737  } 
     
    5959  char ctrl[NDG_MESSAGE_LEN]; 
    6060 
    61   if (bbftp_private_recv(ctrl, NDG_MESSAGE_LEN, logmessage) == -1) { 
     61  if (bbftp_private_recv(ctrl, NDG_MESSAGE_LEN - 1, logmessage) == -1) { 
    6262    return -1; 
    6363  } 
Note: See TracChangeset for help on using the changeset viewer.