diff options
Diffstat (limited to 'table/destination.go')
-rw-r--r-- | table/destination.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/table/destination.go b/table/destination.go index 2216abca..3535bbfe 100644 --- a/table/destination.go +++ b/table/destination.go @@ -53,7 +53,7 @@ const ( func IpToRadixkey(b []byte, max uint8) string { var buffer bytes.Buffer for i := 0; i < len(b) && i < int(max); i++ { - buffer.WriteString(fmt.Sprintf("%08b", b[i])) + fmt.Fprintf(&buffer, "%08b", b[i]) } return buffer.String()[:max] } |