Skip to content

Commit 625928e

Browse files
author
carblue
committed
crypto.d: Fix template OPENSSL_malloc
1 parent beab824 commit 625928e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deimos/openssl/crypto.d

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ module deimos.openssl.crypto;
119119
import deimos.openssl._d_util;
120120

121121
import core.stdc.stdlib;
122+
import std.string : toStringz;
122123

123124
public import deimos.openssl.e_os2;
124125

@@ -368,7 +369,7 @@ int MemCheck_off()() { return CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_DISABLE); }
368369
alias CRYPTO_is_mem_check_on is_MemCheck_on;
369370

370371
auto OPENSSL_malloc(string file = __FILE__, size_t line = __LINE__)(int num) {
371-
return CRYPTO_malloc(num,file,line);
372+
return CRYPTO_malloc(num,file.toStringz,line);
372373
}
373374
auto OPENSSL_strdup(string file = __FILE__, size_t line = __LINE__)(const(char)* str) {
374375
return CRYPTO_strdup(str,file,line);

0 commit comments

Comments
 (0)