aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Grosshans <[email protected]>2017-01-03 16:34:35 +0100
committerMichael Grosshans <[email protected]>2017-01-03 16:34:35 +0100
commit43e530dce9a3833c7fdcbf527b757581e5e37657 (patch)
tree20225a7cdbd8ee9b921a51b5b7d8883cd3eb18f3
parentec51d5ed21377b4023ca7b1e70ae4cb296ee6047 (diff)
Fixed String Decoding
-rw-r--r--ber.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/ber.go b/ber.go
index 3e99a27..5f95e0a 100644
--- a/ber.go
+++ b/ber.go
@@ -255,12 +255,8 @@ func ReadPacket(reader io.Reader) (*Packet, error) {
return p, nil
}
-func DecodeString(data []byte) (ret string) {
- for _, c := range data {
- ret += fmt.Sprintf("%c", c)
- }
-
- return
+func DecodeString(data []byte) (string) {
+ return string(data)
}
func DecodeInteger(data []byte) (ret uint64) {