Skip to content

Commit

Permalink
Fixed compiler warning in LinuxModule for Release build.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Aug 3, 2023
1 parent d04ec79 commit acd90cc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions sources/Platform/Linux/LinuxModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ namespace LLGL
static std::string GetProgramPath()
{
/* Get filename of running program */
static const std::size_t bufLen = 1024;
char buf[bufLen] = { 0 };
readlink("/proc/self/exe", buf, bufLen);
char buf[1024] = { 0 };
(void)readlink("/proc/self/exe", buf, sizeof(buf));

/* Get path from program */
std::string path = buf;
Expand Down

0 comments on commit acd90cc

Please sign in to comment.