Date: | 2010-05-03 23:56:15 (13 years 10 months ago) |
---|---|
Author: | Lars C. |
Commit: | 09999edc2766926c97027e9981df9a2450072994 |
Message: | Initalize buffer. |
Files: |
src/gmenu2x.cpp (1 diff) |
Change Details
src/gmenu2x.cpp | ||
---|---|---|
1889 | 1889 | const string &GMenu2X::getExePath() { |
1890 | 1890 | if (path.empty()) { |
1891 | 1891 | char buf[255]; |
1892 | int l = readlink("/proc/self/exe",buf,255); | |
1892 | memset(buf, 0, 255); | |
1893 | int l = readlink("/proc/self/exe", buf, 255); | |
1893 | 1894 | |
1894 | 1895 | path = buf; |
1895 | 1896 | path = path.substr(0,l); |
Branches:
install_locations
master
opkrun
packages