commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject cvs commit: jakarta-commons/net/src/java/org/apache/commons/net/tftp TFTPRequestPacket.java
Date Wed, 24 Nov 2004 14:36:12 GMT
rwinston    2004/11/24 06:36:12

  Modified:    net/src/java/org/apache/commons/net/tftp
                        TFTPRequestPacket.java
  Log:
  Change length of TFTP datagram packet to avoid trailing null bytes as per bug 32363
  
  Revision  Changes    Path
  1.11      +2 -2      jakarta-commons/net/src/java/org/apache/commons/net/tftp/TFTPRequestPacket.java
  
  Index: TFTPRequestPacket.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/tftp/TFTPRequestPacket.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- TFTPRequestPacket.java	29 Jun 2004 04:54:32 -0000	1.10
  +++ TFTPRequestPacket.java	24 Nov 2004 14:36:12 -0000	1.11
  @@ -192,8 +192,8 @@
           datagram.setAddress(_address);
           datagram.setPort(_port);
           datagram.setData(data);
  -        datagram.setLength(fileLength + modeLength + 4);
  -
  +        datagram.setLength(fileLength + modeLength + 3);
  +        
           return datagram;
       }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message