We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f1e9a9 commit 005de61Copy full SHA for 005de61
1 file changed
Sources/SMTP.swift
@@ -424,7 +424,11 @@ public class EMail {
424
}//end if
425
let result = this.body.withCString { ptr -> Int in
426
let size = remain > szblock ? szblock : remain
427
- memcpy(target, ptr.advanced(by: this.progress), size)
+ #if os(Linux)
428
+ memcpy(target!, ptr.advanced(by: this.progress), size)
429
+ #else
430
+ memcpy(target, ptr.advanced(by: this.progress), size)
431
+ #endif
432
return size
433
}//end with
434
this.progress += result
0 commit comments