No need for cstring/cint conversions.

FossilOrigin-Name: e9d66d2bba3d5b5abb88679e95b23c3fa86b36e6ef6b02230c7a61c265da88f8
This commit is contained in:
Mahlon E. Smith 2023-06-29 13:31:29 +00:00
parent 5775e5f438
commit a7e4efcce9

View file

@ -106,7 +106,7 @@ proc newMessage*( dir: Maildir ): Message =
let now = getTime() let now = getTime()
var hostname = newString(256) var hostname = newString(256)
discard getHostname( cstring(hostname), cint(256) ) discard getHostname( hostname, 256 )
hostname.setLen( cstring(hostname).len ) hostname.setLen( cstring(hostname).len )
msgcount = msgcount + 1 msgcount = msgcount + 1