From 8df721df25864f89772c58a4486314855bf1a37e Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 28 Oct 2022 04:00:00 +0200 Subject: Fix some compiler warnings & buffer overflows --- src/graph/viewAlone/spoonComp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/graph/viewAlone/spoonComp.c') 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); -- cgit v1.2.3