Skip to content

Commit

Permalink
fix sonarcloud issue
Browse files Browse the repository at this point in the history
  • Loading branch information
PonomarevDA committed Jun 25, 2024
1 parent 0636deb commit fb7d439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/platform/ubuntu/platform_specific.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void uavcanRestartNode() {

// Get the current executable path
char path[1024];
ssize_t count = readlink("/proc/self/exe", path, sizeof(path));
ssize_t count = readlink("/proc/self/exe", path, sizeof(path) - 1);
if (count == -1) {
std::cerr << "Error getting executable path." << std::endl;
exit(1);
Expand Down

0 comments on commit fb7d439

Please sign in to comment.