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-server-3.2.0/bbftpd/ndg.c

    r1393 r1430  
    197197 
    198198  sprintf(ctrl, "NDG-msg: %i", length); 
    199   if (bbftpd_private_send(ctrl, NDG_MESSAGE_LEN, logmessage) == -1) { 
     199  if (bbftpd_private_send(ctrl, NDG_MESSAGE_LEN - 1, logmessage) == -1) { 
    200200    return -1; 
    201201  } 
     
    223223  char ctrl[NDG_MESSAGE_LEN]; 
    224224 
    225   if (bbftpd_private_recv(ctrl, NDG_MESSAGE_LEN, logmessage) == -1) { 
     225  if (bbftpd_private_recv(ctrl, NDG_MESSAGE_LEN - 1, logmessage) == -1) { 
    226226    return -1; 
    227227  } 
Note: See TracChangeset for help on using the changeset viewer.