ETA compilation warning

I get this compilation warning from an included ETA header file. Can it be fixed ?


In file included from ../../../libs/upa/include/rtr/rsslRDMMsg.h:12,

from ../../../libs/upa/include/rtr/rsslReactor.h:12,

from ../sslsrc.h:76,

from ../mocks/sslsrc_mocks.h:19,

from ../upa/test_upa.c:14:

../../../libs/upa/include/rtr/rsslRDMLoginMsg.h: In function ‘rsslInitDefaultRDMLoginRequest’:

../../../libs/upa/include/rtr/rsslRDMLoginMsg.h:227:77: warning: ‘/net’ directive output may be truncated writing 4 bytes into a region of size between 1 and 256 [-Wformat-truncation=]

snprintf(pRequest->defaultPosition, sizeof(pRequest->defaultPosition), "%s/net", tmpHostNameBlock);

^~~~

../../../libs/upa/include/rtr/rsslRDMLoginMsg.h:227:3: note: ‘snprintf’ output between 5 and 260 bytes into a destination of size 256

snprintf(pRequest->defaultPosition, sizeof(pRequest->defaultPosition), "%s/net", tmpHostNameBlock);

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Best Answer

Answers

  • Hello @andy.sciascia,

    My understanding is that you are reporting a suspected issue with the latest version of Refinitiv Realtime SDK, formerly Elektron SDK.

    If this is correct, please report the issue directly to Refinitiv Realtime SDK development team, via Refinitiv Realtime SDK on GitHub -> Issues, including all relevant info to reproduce the warning.

    If this is with an older version, please test with the latest version that includes all the issue fixes applied up to the present date, the SDK can be downloaded via Refinitiv Real-Time SDK - C/C++ -> Downloads tab.

    Thanks,

    -AHS