Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rishabh Gupta
purr-data
Commits
14a11419
Commit
14a11419
authored
Jan 23, 2013
by
Ivica Bukvic
Browse files
fixed pd~ external not finding the gui dir bug
parent
18c109f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/s_main.c
View file @
14a11419
...
...
@@ -459,6 +459,14 @@ void sys_findprogdir(char *progname)
/* go back to the parent from there, e.g., ~/pd */
lastslash
=
strrchr
(
sbuf
,
'/'
);
if
(
lastslash
)
{
strncpy
(
sbuf2
,
sbuf
,
lastslash
-
sbuf
);
sbuf2
[
lastslash
-
sbuf
]
=
0
;
}
/* go back to the parent from there once more, e.g., ~/pd */
strcpy
(
sbuf
,
sbuf2
);
lastslash
=
strrchr
(
sbuf
,
'/'
);
if
(
lastslash
)
{
strncpy
(
sbuf2
,
sbuf
,
lastslash
-
sbuf
);
sbuf2
[
lastslash
-
sbuf
]
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment