Skip to content

Commit 7f131ce

Browse files
committed
Use binary-safe STRINGL macro
1 parent 23948f2 commit 7f131ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ static int curl_ssh_hostkeyfunction(void *clientp, int keytype, const char *key,
794794
GC_ADDREF(&ch->std);
795795
ZVAL_OBJ(&argv[0], &ch->std);
796796
ZVAL_LONG(&argv[1], keytype);
797-
ZVAL_STRING(&argv[2], key);
797+
ZVAL_STRINGL(&argv[2], key, keylen);
798798
ZVAL_LONG(&argv[3], keylen);
799799

800800
fci.size = sizeof(fci);

0 commit comments

Comments
 (0)