Skip to content

Commit

Permalink
Fixed classname having garbage data at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
MCMrARM committed Nov 30, 2018
1 parent c8f98c3 commit fa70ea8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/window_manager_eglut.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
#include <unistd.h>
#include <linux/limits.h>
#include <libgen.h>
#include <cstring>

EGLUTWindowManager::EGLUTWindowManager() {
char buf[PATH_MAX];
memset(buf, 0, sizeof(buf));
readlink("/proc/self/exe", buf, sizeof(buf) - 1);
eglutInitX11ClassInstanceName(basename(buf));
eglutInit(0, nullptr); // the args aren't really required and are troublesome to pass with this system
Expand Down

0 comments on commit fa70ea8

Please sign in to comment.