mldonkey-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Mldonkey-commits] Changes to mldonkey/src/networks/gnutella2/g2Proto.ml


From: mldonkey-commits
Subject: [Mldonkey-commits] Changes to mldonkey/src/networks/gnutella2/g2Proto.ml
Date: Tue, 06 Sep 2005 07:25:09 -0400

Index: mldonkey/src/networks/gnutella2/g2Proto.ml
diff -u mldonkey/src/networks/gnutella2/g2Proto.ml:1.8 
mldonkey/src/networks/gnutella2/g2Proto.ml:1.9
--- mldonkey/src/networks/gnutella2/g2Proto.ml:1.8      Sun Mar 20 01:41:30 2005
+++ mldonkey/src/networks/gnutella2/g2Proto.ml  Tue Sep  6 11:24:59 2005
@@ -262,7 +262,7 @@
     
     let buf = Buffer.create 100
     let print_payload msg = 
-      Buffer.clear buf;
+      Buffer.reset buf;
       let name = 
         let module Buffer = Buffer2 in
         match msg with 
@@ -417,7 +417,7 @@
       
 let g2_encode_payload msg = 
   let module M = G2_LittleEndian in
-  Buffer.clear buf;
+  Buffer.reset buf;
   let name = 
     match msg with 
     | TO md4 -> buf_md4 buf md4; "TO"




reply via email to

[Prev in Thread] Current Thread [Next in Thread]