Skip to content
Snippets Groups Projects
Commit 38e2203f authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

*fixed compile-time warnings

parent e6cd92d9
No related branches found
No related tags found
No related merge requests found
...@@ -272,7 +272,7 @@ int sys_main(int argc, char **argv) ...@@ -272,7 +272,7 @@ int sys_main(int argc, char **argv)
int i, noprefs; int i, noprefs;
sys_externalschedlib = 0; sys_externalschedlib = 0;
sys_extraflags = 0; sys_extraflags = 0;
char * filenames; char * filenames = NULL;
#ifdef PD_DEBUG #ifdef PD_DEBUG
fprintf(stderr, "Pd-L2Ork: COMPILED FOR DEBUGGING\n"); fprintf(stderr, "Pd-L2Ork: COMPILED FOR DEBUGGING\n");
#endif #endif
...@@ -532,7 +532,10 @@ void sys_findprogdir(char *progname) ...@@ -532,7 +532,10 @@ void sys_findprogdir(char *progname)
sys_libdir = gensym(sbuf2); sys_libdir = gensym(sbuf2);
sys_guidir = &s_; /* in MSW the guipath just depends on the libdir */ sys_guidir = &s_; /* in MSW the guipath just depends on the libdir */
#else #else
realpath(sbuf2, sbuf); char *res = realpath(sbuf2, sbuf);
if (!res) {
error("%s: Cannot get a real path", sbuf2);
}
strncpy(sbuf2, sbuf, FILENAME_MAX-30); strncpy(sbuf2, sbuf, FILENAME_MAX-30);
sbuf[FILENAME_MAX-30] = 0; sbuf[FILENAME_MAX-30] = 0;
strcat(sbuf2, "/lib/pd-l2ork"); strcat(sbuf2, "/lib/pd-l2ork");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment