Skip to content

Commit

Permalink
Compat change: use unsafe_string
Browse files Browse the repository at this point in the history
  • Loading branch information
malmaud committed Mar 21, 2017
1 parent b4c4250 commit 173250e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/md.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ end
function get_name(info::MDInfo)
ret = ccall((:mbedtls_md_get_name, MBED_CRYPTO), Ptr{UInt8},
(Ptr{Void},), info.data)
String(ret)
unsafe_string(ret)
end

get_name(md::MD) = get_name(md.info)
Expand Down

0 comments on commit 173250e

Please sign in to comment.