mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 18:23:08 +02:00
Initalize buffer.
This commit is contained in:
parent
c9c915c892
commit
09999edc27
@ -1889,7 +1889,8 @@ int GMenu2X::getVolumeScaler() {
|
|||||||
const string &GMenu2X::getExePath() {
|
const string &GMenu2X::getExePath() {
|
||||||
if (path.empty()) {
|
if (path.empty()) {
|
||||||
char buf[255];
|
char buf[255];
|
||||||
int l = readlink("/proc/self/exe",buf,255);
|
memset(buf, 0, 255);
|
||||||
|
int l = readlink("/proc/self/exe", buf, 255);
|
||||||
|
|
||||||
path = buf;
|
path = buf;
|
||||||
path = path.substr(0,l);
|
path = path.substr(0,l);
|
||||||
|
Loading…
Reference in New Issue
Block a user