mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
try to fix open menus, hope it worx.
This commit is contained in:
10
src/misc.c
10
src/misc.c
@@ -155,9 +155,15 @@ MakeCPPArgs(char *path)
|
||||
* search path */
|
||||
if (path) {
|
||||
tmp = wstrdup(path);
|
||||
buf = strchr(tmp+1, ' ');
|
||||
if (buf) {
|
||||
*buf = 0;
|
||||
}
|
||||
buf = strrchr(tmp, '/');
|
||||
if (buf) *buf = 0; /* trunc filename */
|
||||
putdef(line, " -I", tmp);
|
||||
if (buf) {
|
||||
*buf = 0; /* trunc filename */
|
||||
putdef(line, " -I", tmp);
|
||||
}
|
||||
free(tmp);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user