Error in client_cpp_sdk.cpp (on linux)

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
FrankJanus
Jr. Member
Jr. Member
Posts: 4
Joined: 03 Sep 2012, 10:50

Error in client_cpp_sdk.cpp (on linux)

Post by FrankJanus »

Hello Support Team,

there is a mistake in the example source client_cpp_sdk.cpp if it used on linux.

Change Line 56 from

readlink("/proc/self/exe", szAppPath, sizeof(szAppPath-1));

to

readlink("/proc/self/exe", szAppPath, sizeof(szAppPath)-1);

In the first case the buffer ist to smale and the string is to short.

Best regards
Frank

User avatar
Support Team
Hero Member
Hero Member
Posts: 3072
Joined: 18 Mar 2011, 15:09

Re:Error in client_cpp_sdk.cpp (on linux)

Post by Support Team »

Hello Frank,
thank you for the hint.
We'll fix that for the next service release.

Best Regards,
Unified Automation Support Team
Best regards
Unified Automation Support Team

Post Reply