aboutsummaryrefslogtreecommitdiff
path: root/src/graph/viewAlone/spoonComp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph/viewAlone/spoonComp.c')
-rw-r--r--src/graph/viewAlone/spoonComp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/graph/viewAlone/spoonComp.c b/src/graph/viewAlone/spoonComp.c
index 5714d04f..0b3be3ba 100644
--- a/src/graph/viewAlone/spoonComp.c
+++ b/src/graph/viewAlone/spoonComp.c
@@ -60,7 +60,7 @@ spoonView3D(int type)
{
int i,j,k,code,pipe0[2],pipe1[2];
- char envAXIOM[100],runView[100];
+ char runView[100];
LLPoint *anLLPoint;
LPoint *anLPoint;
int *anIndex;
@@ -86,8 +86,7 @@ spoonView3D(int type)
sprintf(errorStr,"%s",
"(viewAlone) execution of the ThreeDimensionalViewport process");
- sprintf(envAXIOM,"%s",oa_getenv("AXIOM"));
- sprintf(runView,"%s%s",envAXIOM,"/lib/view3D");
+ sprintf(runView,"%s/lib/view3D",oa_getenv("AXIOM"));
check(execl(runView,runView, (char*) NULL));
fprintf(stderr,"Could not execute view3D!\n");
exit(-1);