aboutsummaryrefslogtreecommitdiffstats
path: root/cshared/std_cshared.go
diff options
context:
space:
mode:
authorVadim Markovtsev <vadim@sourced.tech>2016-06-21 17:14:53 +0300
committerVadim Markovtsev <vadim@sourced.tech>2016-06-21 17:14:53 +0300
commitda07dca4523ebd25c634152a62cae4a72eb5783f (patch)
tree028122b562ce464ae4410525b5b3d3dfcea4846c /cshared/std_cshared.go
parentbea415417e87fbb403095e8cd3fb8512a1a97af8 (diff)
downloadgo-git-da07dca4523ebd25c634152a62cae4a72eb5783f.tar.gz
Wrap more objects with CGo
Diffstat (limited to 'cshared/std_cshared.go')
-rw-r--r--cshared/std_cshared.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cshared/std_cshared.go b/cshared/std_cshared.go
index 5df9a21..ca93993 100644
--- a/cshared/std_cshared.go
+++ b/cshared/std_cshared.go
@@ -28,7 +28,7 @@ func c_std_map_get_str_str(m uint64, key string) *C.char {
val.Type().Elem().Kind() == reflect.Uint8 {
arr := make([]byte, val.Len(), val.Len())
reflect.Copy(reflect.ValueOf(arr), val)
- return C.CString(string(arr))
+ return CBytes(arr)
}
return C.CString(val.String())
}