]> Cypherpunks.ru repositories - nncp.git/blobdiff - src/cmd/nncp-pkt/main.go
Simplify Base32-related code
[nncp.git] / src / cmd / nncp-pkt / main.go
index 3f42cd260e48a25c2f404b94ea769243f4be68db..126497484ddeda0521139430cb6036a5a484be93 100644 (file)
@@ -118,7 +118,7 @@ func main() {
                                -1,
                        ))
                case nncp.PktTypeTrns:
-                       path = nncp.ToBase32(pkt.Path[:pkt.PathLen])
+                       path = nncp.Base32Codec.EncodeToString(pkt.Path[:pkt.PathLen])
                default:
                        path = string(pkt.Path[:pkt.PathLen])
                }