File tree 1 file changed +8
-2
lines changed 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,10 @@ Datum ASN1_STRING_to_text(ASN1_STRING *str)
122
122
outlen = 0 ;
123
123
BIO_write (membuf , & outlen , 1 );
124
124
size = BIO_get_mem_data (membuf , & sp );
125
- dp = pg_do_encoding_conversion (sp , size - 1 , PG_UTF8 , GetDatabaseEncoding ());
125
+ dp = (char * ) pg_do_encoding_conversion ((unsigned char * ) sp ,
126
+ size - 1 ,
127
+ PG_UTF8 ,
128
+ GetDatabaseEncoding ());
126
129
outlen = strlen (dp );
127
130
result = palloc (VARHDRSZ + outlen );
128
131
memcpy (VARDATA (result ), dp , outlen );
@@ -288,7 +291,10 @@ Datum X509_NAME_to_text(X509_NAME *name)
288
291
BIO_write (membuf , & i , 1 );
289
292
size = BIO_get_mem_data (membuf , & sp );
290
293
291
- dp = pg_do_encoding_conversion (sp , size - 1 , PG_UTF8 , GetDatabaseEncoding ());
294
+ dp = (char * ) pg_do_encoding_conversion ((unsigned char * ) sp ,
295
+ size - 1 ,
296
+ PG_UTF8 ,
297
+ GetDatabaseEncoding ());
292
298
BIO_free (membuf );
293
299
outlen = strlen (dp );
294
300
result = palloc (VARHDRSZ + outlen );
You can’t perform that action at this time.
0 commit comments