Skip to content
Snippets Groups Projects
Commit 79d2ef0f authored by Miller Puckette's avatar Miller Puckette
Browse files

got sprintf out from between fork and exec in t_tkcmd.c

parent 3657ad5a
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ mac: ...@@ -13,6 +13,7 @@ mac:
Gnome: why don't windows pop up when clicked on? Gnome: why don't windows pop up when clicked on?
problems: problems:
find asdf$1 (e.g.) doesn't work
check real-time gaps in writesf~ check real-time gaps in writesf~
fix declare to update current patch when changed fix declare to update current patch when changed
objects on GOP don't erase if you edit the GOP while they're showing objects on GOP don't erase if you edit the GOP while they're showing
......
...@@ -420,6 +420,7 @@ static void pd_startfromgui( void) ...@@ -420,6 +420,7 @@ static void pd_startfromgui( void)
#endif #endif
#ifdef UNISTD #ifdef UNISTD
sprintf(cmdbuf, "\"%s\" -guiport %d\n", pdbuf, portno);
childpid = fork(); childpid = fork();
if (childpid < 0) if (childpid < 0)
{ {
...@@ -429,7 +430,6 @@ static void pd_startfromgui( void) ...@@ -429,7 +430,6 @@ static void pd_startfromgui( void)
} }
else if (!childpid) /* we're the child */ else if (!childpid) /* we're the child */
{ {
sprintf(cmdbuf, "\"%s\" -guiport %d\n", pdbuf, portno);
#ifdef DEBUGCONNECT #ifdef DEBUGCONNECT
fprintf(debugfd, "%s", cmdbuf); fprintf(debugfd, "%s", cmdbuf);
fflush(debugfd); fflush(debugfd);
......
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