diff options
Diffstat (limited to 'pd/src/t_tkcmd.c')
-rw-r--r-- | pd/src/t_tkcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pd/src/t_tkcmd.c b/pd/src/t_tkcmd.c index c32dc346..bd6ff5a5 100644 --- a/pd/src/t_tkcmd.c +++ b/pd/src/t_tkcmd.c @@ -420,6 +420,7 @@ static void pd_startfromgui( void) #endif #ifdef UNISTD + sprintf(cmdbuf, "\"%s\" -guiport %d\n", pdbuf, portno); childpid = fork(); if (childpid < 0) { @@ -429,7 +430,6 @@ static void pd_startfromgui( void) } else if (!childpid) /* we're the child */ { - sprintf(cmdbuf, "\"%s\" -guiport %d\n", pdbuf, portno); #ifdef DEBUGCONNECT fprintf(debugfd, "%s", cmdbuf); fflush(debugfd); |