X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/e27ef2c6aab3a2a8051314bd37bb3b2386775f36..eaa75975b23ce60360526c08628f2b0651c95167:/binipstuff.pas?ds=inline

diff --git a/binipstuff.pas b/binipstuff.pas
index ae3d23a..1cfa34d 100644
--- a/binipstuff.pas
+++ b/binipstuff.pas
@@ -4,17 +4,20 @@
   ----------------------------------------------------------------------------- }
 unit binipstuff;
 
+{$ifdef fpc}
+{$mode delphi}
+{$endif}
+
 interface
 
 {$include lcoreconfig.inc}
 
 uses
-  {$ifndef win32}{$ifdef ipv6}sockets,{$endif}{$endif}
+{$ifndef win32}
+  sockets,
+{$endif}
   pgtypes;
 
-{$ifdef fpc}
-  {$mode delphi}
-{$endif}
 {$ifdef cpu386}{$define i386}{$endif}
 {$ifdef i386}{$define ENDIAN_LITTLE}{$endif}
 
@@ -382,6 +385,13 @@ begin
       end;
     end;
   end;
+
+  {run length atleast 2 0 words}
+  if (runlength = 1) then begin
+    runlength := 0;
+    runbegin := 0;
+  end;
+
   result := '';
   for a := 0 to runbegin-1 do begin
     if (a <> 0) then result := result + ':';