]> git.ipfire.org Git - thirdparty/openssl.git/commit
quic_multistream_test: fix undefined symbol snprintf with VS2010
authorGeorgi Valkov <gvalkov@gmail.com>
Sat, 4 May 2024 08:24:08 +0000 (11:24 +0300)
committerTomas Mraz <tomas@openssl.org>
Tue, 14 May 2024 07:07:15 +0000 (09:07 +0200)
commit9ba96a5f79739349f9ff53ff47b59bbce62f1bc6
treed697eccc9aa62bf8ccb7649b8a7b6d3bcb2b4aaf
parent8702320db98d1346c230aff1282ade3ecdca681a
quic_multistream_test: fix undefined symbol snprintf with VS2010

As snprintf is not available everywhere, use BIO_snprintf instead.

Fixes:
        IF EXIST test\quic_multistream_test.exe.manifest DEL /F /Q test\quic_multistream_test.exe.manifest
        "link" /nologo /debug setargv.obj /subsystem:console /opt:ref  /nologo /debug @V:\_tmp\nm4.tmp
quic_multistream_test-bin-quic_multistream_test.obj : error LNK2019: unresolved external symbol _snprintf referenced in function _helper_init
test\quic_multistream_test.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"E:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\link.EXE"' : return code '0x460'

Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24369)

(cherry picked from commit c02f952b48927af9fc4e991d7ead89a4cd1636bc)
test/quic_multistream_test.c