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
Error in client_cpp_sdk.cpp (on linux)
Moderator: uasdkcpp
-
- Jr. Member
- Posts: 4
- Joined: 03 Sep 2012, 10:50
- Support Team
- Hero Member
- Posts: 3072
- Joined: 18 Mar 2011, 15:09
Re:Error in client_cpp_sdk.cpp (on linux)
Hello Frank,
thank you for the hint.
We'll fix that for the next service release.
Best Regards,
Unified Automation Support Team
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
Unified Automation Support Team