Skip to content

Commit

Permalink
using peekCAString instead of peekCString.
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Feb 15, 2018
1 parent 8771875 commit 831fac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Network/Socket/Types.hsc
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@ peekSockAddr p = do
case family :: CSaFamily of
#if defined(DOMAIN_SOCKET_SUPPORT)
(#const AF_UNIX) -> do
str <- peekCString ((#ptr struct sockaddr_un, sun_path) p)
str <- peekCAString ((#ptr struct sockaddr_un, sun_path) p)
return (SockAddrUnix str)
#endif
(#const AF_INET) -> do
Expand Down

0 comments on commit 831fac6

Please sign in to comment.